Skip to content

Commit ed11720

Browse files
Veykriljyn514
authored andcommitted
Update r-a config suggestions
The proc-macro server path is required for proc-macros to properly work in r-a when working on rustc. Pointing the sysroot to the stage0 one is more correct than using the system installed one.
1 parent 7743f0f commit ed11720

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/building/suggested.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ you can write: <!-- date-check: apr 2022 --><!-- the date comment is for the edi
3636
"./build/$TARGET_TRIPLE/stage0/bin/rustfmt",
3737
"--edition=2021"
3838
],
39+
"rust-analyzer.procMacro.server": "./build/$TARGET_TRIPLE/stage0/libexec/rust-analyzer-proc-macro-srv",
3940
"rust-analyzer.procMacro.enable": true,
4041
"rust-analyzer.cargo.buildScripts.enable": true,
4142
"rust-analyzer.cargo.buildScripts.overrideCommand": [
@@ -44,6 +45,7 @@ you can write: <!-- date-check: apr 2022 --><!-- the date comment is for the edi
4445
"check",
4546
"--json-output"
4647
],
48+
"rust-analyzer.cargo.sysroot": "./build/$TARGET_TRIPLE/stage0-sysroot",
4749
"rust-analyzer.rustc.source": "./Cargo.toml",
4850
}
4951
```

0 commit comments

Comments
 (0)