Repository navigation
Add edition 2021. - #79576
Add edition 2021.#79576
Conversation
commented
Nov 30, 2020
|
(rust-highfive has picked a reviewer for you, use r? to override) |
commented
Nov 30, 2020
|
rust-lang/rfcs#2966 hasn't been merged - are we sure there will be a 2021 edition? |
commented
Nov 30, 2020
|
@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. |
commented
Dec 1, 2020
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. |
commented
Dec 1, 2020
|
@pickfire that's a question you should ask (and is already addressed) on rust-lang/rfcs#2966, not here. |
commented
Dec 1, 2020
|
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.
commented
Dec 24, 2020
|
@bors r+ Thanks! |
commented
Dec 24, 2020
|
📌 Commit cfee9fb has been approved by |
commented
Dec 25, 2020
|
⌛ Testing commit cfee9fb with merge 58cadeff6478eb14c76143aed50eb968385886c4... |
commented
Dec 30, 2020
|
Rebased. This should be ready to merge on 2021-01-01 00:00 UTC, when the beta week ends. (Beta 1.50 is already branched off, but the check doesn't know that. Maybe we could make the check a bit smarter at some point.) |
commented
Dec 30, 2020
It's kind of cool that Edition 2021 will be ready to merge right at the beginning of 2021 :) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
commented
Jan 1, 2021
This is now. Happy new year! 🎆 🍾 @bors r=Mark-Simulacrum |
commented
Jan 1, 2021
|
📌 Commit 3cbdbe8 has been approved by |
commented
Jan 1, 2021
commented
Jan 1, 2021
|
☀️ Test successful - checks-actions |
🎆 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=2021results in: