File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ you can write: <!-- date: 2021-09 --><!-- the date comment is for the edition be
32
32
" --json-output"
33
33
],
34
34
"rust-analyzer.rustfmt.overrideCommand" : [
35
- " ./build/TARGET_TRIPLE/stage0/bin/rustfmt" ,
35
+ " ./build/$ TARGET_TRIPLE/stage0/bin/rustfmt" ,
36
36
" --edition=2021"
37
37
],
38
38
"editor.formatOnSave" : true ,
@@ -45,6 +45,11 @@ you can write: <!-- date: 2021-09 --><!-- the date comment is for the edition be
45
45
in your ` .vscode/settings.json ` file. This will ask ` rust-analyzer ` to use
46
46
` x.py check ` to check the sources, and the stage 0 rustfmt to format them.
47
47
48
+ > NOTE: Make sure to replace ` TARGET_TRIPLE ` in the ` rust-analyzer.rustfmt.overrideCommand `
49
+ > setting with the appropriate target triple for your machine. An example of such
50
+ > a triple is ` x86_64-unknown-linux-gnu ` . An easy way to check your target triple
51
+ > is to run ` rustc -vV ` and checking the ` host ` value of its output.
52
+
48
53
If you're running ` coc.nvim ` , you can use ` :CocLocalConfig ` to create a
49
54
` .vim/coc-settings.json ` and enter the same settings as above, but replacing
50
55
` editor.formatOnSave: true, ` with
You can’t perform that action at this time.
0 commit comments