-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat: Add Edition2024
#12771
feat: Add Edition2024
#12771
Conversation
r? @weihanglo (rustbot has picked a reviewer for you, use r? to override) |
@@ -1271,6 +1272,32 @@ Differences between `cargo run --manifest-path <path>` and `cargo <path>` | |||
|
|||
### Documentation Updates | |||
|
|||
## Edition 2024 | |||
* Tracking Issue: (none created yet) |
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.
No tracking issue has been created yet, so this will have to be updated to include a link when the RFC gets merged and a tracking issue gets created.
If there is a tracking issue for cargo
and rust
, both links should probably be included.
@@ -286,6 +292,7 @@ impl Edition { | |||
Edition2015 => false, | |||
Edition2018 => true, | |||
Edition2021 => true, | |||
Edition2024 => false, |
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.
While there currently is rust_2024_compatibility
lint group, I set it to false
as there are no lints in the group currently (from what I can tell). This was how Edition2021
originally was before it was updated to be true
.
@bors r+ |
🔒 Merge conflict This pull request and the master branch diverged in a way that cannot be automatically merged. Please rebase on top of the latest master branch, and let the reviewer approve again. How do I rebase?Assuming
You may also read Git Rebasing to Resolve Conflicts by Drew Blessing for a short tutorial. Please avoid the "Resolve conflicts" button on GitHub. It uses Sometimes step 4 will complete without asking for resolution. This is usually due to difference between how Error message
|
@bors r+ |
☀️ Test successful - checks-actions |
RFC for
Edition2024
. While the RFC is not yet merged, this follows rustc which added the 2024 edition previously in rust-lang/rust#94461This PR adds
Edition2024
as a possible value foredition = "xxxx"
. I did this by following the guide here.