-
Notifications
You must be signed in to change notification settings - Fork 516
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
Document rust-analyzer cargo workaround for 2021 edition #1217
Comments
Although in the future, there may be other changes to |
I marked this as |
X.py has to be able to build with the beta compiler, so nightly should be never be required. I don't know if there's cases where you'd have to set RUSTC_BOOTSTRAP just to run |
However to do that it uses a freshly compiled stdlib. This means that the compiler is able to use stdlib features that are not yet available on beta, not even as unstable. This happened for example with |
@SkiFire13 right, well, there's not much we can do about that because rust-analyzer doesn't understand staged builds. |
Triage: Does this situation still continue? If not, I think we could close this issue. |
No, 2021 is stable on beta now. |
To get RA to work (currently) you need to run
rustup override set beta
, so the cargo RA invokes considers rust 2021 stable.Otherwise you get this error:
Either this should be documented or
.vscode/settings.json
should point RA to the cargo downloaded by x.py.I think the latter is more "elegant", but I dont know if its possible with RA.
Also, previously RA was fine with stable cargo, as AUIU it just needs it to run
cargo metadata
, ascargo check
is already overridden, so once 1.56 is stable, this may no longer be needed.The text was updated successfully, but these errors were encountered: