diff options
author | Daniel McNab <[email protected]> | 2021-03-08 16:37:52 +0000 |
---|---|---|
committer | Daniel McNab <[email protected]> | 2021-03-08 16:37:52 +0000 |
commit | bbecea03fda57cced0b4ba95f4bbd45f8d88102c (patch) | |
tree | 3061c3ecbb5cdfb3c302efb7cd536de356e8cff8 /crates/project_model | |
parent | ddce6bb282764692d53b719bff4c37e3512d4556 (diff) |
Revert "Support disabling rustc build scripts"
This reverts commit ddce6bb282764692d53b719bff4c37e3512d4556.
Diffstat (limited to 'crates/project_model')
-rw-r--r-- | crates/project_model/src/workspace.rs | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/crates/project_model/src/workspace.rs b/crates/project_model/src/workspace.rs index d754c8b55..aa7a8ee52 100644 --- a/crates/project_model/src/workspace.rs +++ b/crates/project_model/src/workspace.rs | |||
@@ -274,19 +274,12 @@ impl ProjectWorkspace { | |||
274 | crate_graph | 274 | crate_graph |
275 | } | 275 | } |
276 | 276 | ||
277 | pub fn collect_build_data_configs( | 277 | pub fn collect_build_data_configs(&self, collector: &mut BuildDataCollector) { |
278 | &self, | ||
279 | collector: &mut BuildDataCollector, | ||
280 | for_private: bool, | ||
281 | ) { | ||
282 | match self { | 278 | match self { |
283 | ProjectWorkspace::Cargo { cargo, rustc, .. } => { | 279 | ProjectWorkspace::Cargo { cargo, rustc, .. } => { |
284 | collector.add_config(&cargo.workspace_root(), cargo.build_data_config().clone()); | 280 | collector.add_config(&cargo.workspace_root(), cargo.build_data_config().clone()); |
285 | if for_private { | 281 | if let Some(rustc) = rustc { |
286 | if let Some(rustc) = rustc { | 282 | collector.add_config(rustc.workspace_root(), rustc.build_data_config().clone()); |
287 | collector | ||
288 | .add_config(rustc.workspace_root(), rustc.build_data_config().clone()); | ||
289 | } | ||
290 | } | 283 | } |
291 | } | 284 | } |
292 | _ => {} | 285 | _ => {} |