-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Add edition 2021. #79576
Add edition 2021. #79576
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
rust-lang/rfcs#2966 hasn't been merged - are we sure there will be a 2021 edition? |
@jyn514 That RFC has 8 of the 9 checkboxes checked, and none of the remaining comments are about whether 2021 should exist. Both the libs and lang team have been talking about Rust 2021 as the next edition. |
I was looking at the patch and noticed that the change is just changing from 2018 to 2021. I wonder what is the point of editions if there are no breaking change? Why would one change from 2018 to 2021 if it is the same thing? If it is the same thing then most likely some crates will be 2018 and some will be 2021, will that slow down the compile time? But from the RFC looks like we have breaking change. |
@pickfire that's a question you should ask (and is already addressed) on rust-lang/rfcs#2966, not here. |
This adds 2021 as an unstable edition, such that we can start adding changes to that edition. Any 2021-specific changes can be added after this PR lands, before the new edition is made stable and default. |
This comment has been minimized.
This comment has been minimized.
@bors r+ Thanks! |
📌 Commit cfee9fb has been approved by |
Add edition 2021. :fireworks: Happy new ~~year~~ edition. :champagne: This adds --edition=2021, and updates suggestions about 2018 to say "2018 *or later*". Related Cargo PR: rust-lang/cargo#8922 --- Edit: This adds the new edition as *unstable*. Without `-Z unstable-options`, `--edition=2021` results in: ``` $ rustc --edition=2021 error: edition 2021 is unstable and only available with -Z unstable-options. ```
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This is now. Happy new year! 🎆 🍾 @bors r=Mark-Simulacrum |
📌 Commit 3cbdbe8 has been approved by |
☀️ Test successful - checks-actions |
Tested on commit rust-lang/rust@f8ab56b. Direct link to PR: <rust-lang/rust#79576> 💔 rls on windows: test-pass → build-fail (cc @Xanewok). 💔 rls on linux: test-pass → build-fail (cc @Xanewok).
Add support for Rust edition 2021. This adds support for `ediiton = "2021"`. Related `rustc` PR: rust-lang/rust#79576
Add edition 2021. See rust-lang/rust#80576. This un-breaks the build of RLS after rust-lang/rust#79576 broke it.
🎆 Happy new
yearRust. 🍾This adds --edition=2021, and updates suggestions about 2018 to say "2018 or later".
Related Cargo PR: rust-lang/cargo#8922
Edit: This adds the new edition as unstable. Without
-Z unstable-options
,--edition=2021
results in: