Skip to content

Commit 961e80b

Browse files
authored
Rollup merge of rust-lang#113906 - notriddle:notriddle/cargo-extra-env, r=Mark-Simulacrum
etc: add `RUSTC_BOOTSTRAP` to rust-analyzer config Fixes the problem reported in rust-lang#112391 (comment)
2 parents 7705d29 + a62e30e commit 961e80b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/bootstrap/setup.rs

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ static SETTINGS_HASHES: &[&str] = &[
3232
"56e7bf011c71c5d81e0bf42e84938111847a810eee69d906bba494ea90b51922",
3333
"af1b5efe196aed007577899db9dae15d6dbc923d6fa42fa0934e68617ba9bbe0",
3434
"3468fea433c25fff60be6b71e8a215a732a7b1268b6a83bf10d024344e140541",
35+
"47d227f424bf889b0d899b9cc992d5695e1b78c406e183cd78eafefbe5488923",
3536
];
3637
static RUST_ANALYZER_SETTINGS: &str = include_str!("../etc/rust_analyzer_settings.json");
3738

src/etc/rust_analyzer_settings.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,8 @@
3131
"--json-output"
3232
],
3333
"rust-analyzer.cargo.sysrootSrc": "./library",
34-
"rust-analyzer.rustc.source": "./Cargo.toml"
34+
"rust-analyzer.rustc.source": "./Cargo.toml",
35+
"rust-analyzer.cargo.extraEnv": {
36+
"RUSTC_BOOTSTRAP": "1"
37+
}
3538
}

0 commit comments

Comments
 (0)