-
Notifications
You must be signed in to change notification settings - Fork 13.4k
implement new x
flag: --skip-std-check-if-no-download-rustc
#141970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
143d813
f1e6afd
9e162fe
0ca1be9
c843bec
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,6 +59,14 @@ always overrides the inner ones. | |
|
||
## Configuring `rust-analyzer` for `rustc` | ||
|
||
### Checking the "library" tree | ||
|
||
Checking the "library" tree requires a stage1 compiler, which can be a heavy process on some computers. | ||
For this reason, bootstrap has a flag called `--skip-std-check-if-no-download-rustc` that skips checking the | ||
"library" tree if `rust.download-rustc` isn't available. If you want to avoid putting a heavy load on your computer | ||
with `rust-analyzer`, you can add the `--skip-std-check-if-no-download-rustc` flag to your `./x check` command in | ||
the `rust-analyzer` configuration. | ||
Comment on lines
+62
to
+68
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are too many sample RA configurations. I decided to document this flag separately by its own and leave it to users to decide whether or not to utilize it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, fair enough. The main point to get across is that this is only useful when you want to check multiple things ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't the sample file at |
||
|
||
### Project-local rust-analyzer setup | ||
|
||
`rust-analyzer` can help you check and format your code whenever you save a | ||
|
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this take into account the "if-unchanged" logic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it does.