diff options
Diffstat (limited to 'crates/ra_project_model')
-rw-r--r-- | crates/ra_project_model/src/cargo_workspace.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/crates/ra_project_model/src/cargo_workspace.rs b/crates/ra_project_model/src/cargo_workspace.rs index 97fa48b8b..eeeb10233 100644 --- a/crates/ra_project_model/src/cargo_workspace.rs +++ b/crates/ra_project_model/src/cargo_workspace.rs | |||
@@ -39,9 +39,6 @@ pub struct CargoFeatures { | |||
39 | 39 | ||
40 | /// Runs cargo check on launch to figure out the correct values of OUT_DIR | 40 | /// Runs cargo check on launch to figure out the correct values of OUT_DIR |
41 | pub load_out_dirs_from_check: bool, | 41 | pub load_out_dirs_from_check: bool, |
42 | |||
43 | /// Fine grained controls for additional `OUT_DIR` env variables | ||
44 | pub out_dir_overrides: FxHashMap<PackageId, PathBuf>, | ||
45 | } | 42 | } |
46 | 43 | ||
47 | impl Default for CargoFeatures { | 44 | impl Default for CargoFeatures { |
@@ -51,7 +48,6 @@ impl Default for CargoFeatures { | |||
51 | all_features: true, | 48 | all_features: true, |
52 | features: Vec::new(), | 49 | features: Vec::new(), |
53 | load_out_dirs_from_check: false, | 50 | load_out_dirs_from_check: false, |
54 | out_dir_overrides: FxHashMap::default(), | ||
55 | } | 51 | } |
56 | } | 52 | } |
57 | } | 53 | } |
@@ -195,10 +191,6 @@ impl CargoWorkspace { | |||
195 | if cargo_features.load_out_dirs_from_check { | 191 | if cargo_features.load_out_dirs_from_check { |
196 | out_dir_by_id = load_out_dirs(cargo_toml, cargo_features); | 192 | out_dir_by_id = load_out_dirs(cargo_toml, cargo_features); |
197 | } | 193 | } |
198 | // We explicitly extend afterwards to allow overriding the value returned by cargo | ||
199 | out_dir_by_id.extend( | ||
200 | cargo_features.out_dir_overrides.iter().map(|(id, path)| (id.clone(), path.clone())), | ||
201 | ); | ||
202 | 194 | ||
203 | let mut pkg_by_id = FxHashMap::default(); | 195 | let mut pkg_by_id = FxHashMap::default(); |
204 | let mut packages = Arena::default(); | 196 | let mut packages = Arena::default(); |