Skip to content

Commit e154132

Browse files
committed
Remove outDirOverrides
1 parent f84deff commit e154132

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

crates/ra_project_model/src/cargo_workspace.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ pub struct CargoFeatures {
3939

4040
/// Runs cargo check on launch to figure out the correct values of OUT_DIR
4141
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>,
4542
}
4643

4744
impl Default for CargoFeatures {
@@ -51,7 +48,6 @@ impl Default for CargoFeatures {
5148
all_features: true,
5249
features: Vec::new(),
5350
load_out_dirs_from_check: false,
54-
out_dir_overrides: FxHashMap::default(),
5551
}
5652
}
5753
}
@@ -195,10 +191,6 @@ impl CargoWorkspace {
195191
if cargo_features.load_out_dirs_from_check {
196192
out_dir_by_id = load_out_dirs(cargo_toml, cargo_features);
197193
}
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-
);
202194

203195
let mut pkg_by_id = FxHashMap::default();
204196
let mut packages = Arena::default();

editors/code/package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -362,11 +362,6 @@
362362
"type": "boolean",
363363
"default": false,
364364
"markdownDescription": "Run `cargo check` on startup to get the correct value for package OUT_DIRs"
365-
},
366-
"rust-analyzer.cargoFeatures.outDirOverrides": {
367-
"type": "object",
368-
"default": {},
369-
"markdownDescription": "Fine grained controls for OUT_DIR `env!(\"OUT_DIR\")` variable. e.g. `{\"foo 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)\":\"/path/to/foo\"}`, "
370365
}
371366
}
372367
},

editors/code/src/config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export interface CargoFeatures {
2323
allFeatures: boolean;
2424
features: string[];
2525
loadOutDirsFromCheck: boolean;
26-
outDirOverrides: Record<string, string>;
2726
}
2827

2928
export const enum UpdatesChannel {
@@ -222,7 +221,6 @@ export class Config {
222221
allFeatures: this.cfg.get("cargoFeatures.allFeatures") as boolean,
223222
features: this.cfg.get("cargoFeatures.features") as string[],
224223
loadOutDirsFromCheck: this.cfg.get("cargoFeatures.loadOutDirsFromCheck") as boolean,
225-
outDirOverrides: this.cfg.get("cargoFeatures.outDirOverrides") as Record<string, string>,
226224
};
227225
}
228226

0 commit comments

Comments
 (0)