Skip to content

Commit ec84e80

Browse files
authored
suggest build/rust-analyzer instead of build-rust-analyzer
This is better because - `./x clean` also removes it, without needing extra text to explain it - Does not need an extra .gitignore entry
1 parent e5139a7 commit ec84e80

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/doc/rustc-dev-guide/src/building/suggested.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ for two reasons:
9191
additional rebuilds in some cases.
9292

9393
To avoid these problems:
94-
- Add `--build-dir=build-rust-analyzer` to all of the custom `x` commands in
94+
- Add `--build-dir=build/rust-analyzer` to all of the custom `x` commands in
9595
your editor's rust-analyzer configuration.
9696
(Feel free to choose a different directory name if desired.)
9797
- Modify the `rust-analyzer.rustfmt.overrideCommand` setting so that it points
@@ -100,10 +100,7 @@ To avoid these problems:
100100
copy of `rust-analyzer-proc-macro-srv` in that other build directory.
101101

102102
Using separate build directories for command-line builds and rust-analyzer
103-
requires extra disk space, and also means that running `./x clean` on the
104-
command-line will not clean out the separate build directory. To clean the
105-
separate build directory, run `./x clean --build-dir=build-rust-analyzer`
106-
instead.
103+
requires extra disk space.
107104

108105
### Visual Studio Code
109106

0 commit comments

Comments
 (0)