@@ -34,10 +34,10 @@ you can write: <!-- date-check: apr 2022 --><!-- the date comment is for the edi
3434 " --json-output"
3535 ],
3636 "rust-analyzer.rustfmt.overrideCommand" : [
37- " ./build/$TARGET_TRIPLE /stage0/bin/rustfmt" ,
37+ " ./build/host /stage0/bin/rustfmt" ,
3838 " --edition=2021"
3939 ],
40- "rust-analyzer.procMacro.server" : " ./build/$TARGET_TRIPLE /stage0/libexec/rust-analyzer-proc-macro-srv" ,
40+ "rust-analyzer.procMacro.server" : " ./build/host /stage0/libexec/rust-analyzer-proc-macro-srv" ,
4141 "rust-analyzer.procMacro.enable" : true ,
4242 "rust-analyzer.cargo.buildScripts.enable" : true ,
4343 "rust-analyzer.cargo.buildScripts.invocationLocation" : " root" ,
@@ -48,19 +48,14 @@ you can write: <!-- date-check: apr 2022 --><!-- the date comment is for the edi
4848 " check" ,
4949 " --json-output"
5050 ],
51- "rust-analyzer.cargo.sysroot" : " ./build/$TARGET_TRIPLE /stage0-sysroot" ,
51+ "rust-analyzer.cargo.sysroot" : " ./build/host /stage0-sysroot" ,
5252 "rust-analyzer.rustc.source" : " ./Cargo.toml" ,
5353}
5454```
5555
5656in your ` .vscode/settings.json ` file. This will ask ` rust-analyzer ` to use
5757` ./x.py check ` to check the sources, and the stage 0 rustfmt to format them.
5858
59- > NOTE: Make sure to replace ` TARGET_TRIPLE ` in the ` rust-analyzer.rustfmt.overrideCommand `
60- > setting with the appropriate target triple for your machine. An example of such
61- > a triple is ` x86_64-unknown-linux-gnu ` . An easy way to check your target triple
62- > is to run ` rustc -vV ` and checking the ` host ` value of its output.
63-
6459If you have enough free disk space and you would like to be able to run ` x.py ` commands while
6560rust-analyzer runs in the background, you can also add ` --build-dir build-rust-analyzer ` to the
6661` overrideCommand ` to avoid x.py locking.
0 commit comments