Skip to content

Commit 0ca1be9

Browse files
committed
document skip-std-check-if-no-download-rustc in rustc-dev-guide
Signed-off-by: onur-ozkan <[email protected]>
1 parent 9e162fe commit 0ca1be9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ always overrides the inner ones.
5959

6060
## Configuring `rust-analyzer` for `rustc`
6161

62+
### Checking the "library" tree
63+
64+
Checking the "library" tree requires a stage1 compiler, which can be a heavy process on some computers.
65+
For this reason, bootstrap has a flag called `--skip-std-check-if-no-download-rustc` that skips checking the
66+
"library" tree if `rust.download-rustc` isn't available. If you want to avoid putting a heavy load on your computer
67+
with `rust-analyzer`, you can add the `--skip-std-check-if-no-download-rustc` flag to your `./x check` command in
68+
the `rust-analyzer` configuration.
69+
6270
### Project-local rust-analyzer setup
6371

6472
`rust-analyzer` can help you check and format your code whenever you save a

0 commit comments

Comments
 (0)