Skip to content

Commit 96f3a66

Browse files
committed
Auto merge of #115836 - RalfJung:rust_analyzer_settings.json, r=compiler-errors
update rust_analyzer_settings.json This works around rust-lang/rust-analyzer#15595, and avoids relying on the unspecified working directory of this command.
2 parents 635c4a5 + 9af39a6 commit 96f3a66

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/bootstrap/setup.rs

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ static SETTINGS_HASHES: &[&str] = &[
3333
"af1b5efe196aed007577899db9dae15d6dbc923d6fa42fa0934e68617ba9bbe0",
3434
"3468fea433c25fff60be6b71e8a215a732a7b1268b6a83bf10d024344e140541",
3535
"47d227f424bf889b0d899b9cc992d5695e1b78c406e183cd78eafefbe5488923",
36+
"b526bd58d0262dd4dda2bff5bc5515b705fb668a46235ace3e057f807963a11a",
3637
];
3738
static RUST_ANALYZER_SETTINGS: &str = include_str!("../etc/rust_analyzer_settings.json");
3839

src/etc/rust_analyzer_settings.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"compiler/rustc_codegen_gcc/Cargo.toml"
1717
],
1818
"rust-analyzer.rustfmt.overrideCommand": [
19-
"./build/host/rustfmt/bin/rustfmt",
19+
"${workspaceFolder}/build/host/rustfmt/bin/rustfmt",
2020
"--edition=2021"
2121
],
22-
"rust-analyzer.procMacro.server": "./build/host/stage0/libexec/rust-analyzer-proc-macro-srv",
22+
"rust-analyzer.procMacro.server": "${workspaceFolder}/build/host/stage0/libexec/rust-analyzer-proc-macro-srv",
2323
"rust-analyzer.procMacro.enable": true,
2424
"rust-analyzer.cargo.buildScripts.enable": true,
2525
"rust-analyzer.cargo.buildScripts.invocationLocation": "root",

0 commit comments

Comments
 (0)