-
Notifications
You must be signed in to change notification settings - Fork 137
Repo: Update to the 2024 edition #1425
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
Conversation
27ad5d3
to
33224bf
Compare
33224bf
to
ec83aa6
Compare
Let's please wait until we are further along with the current release. |
Now that 1.88 is out this is blocking us gaining access to if let chains. |
447bbbc
to
8df548b
Compare
7704c10
to
fd83b7a
Compare
e70250f
to
cdbd46d
Compare
cdbd46d
to
2261055
Compare
2261055
to
dcc1aba
Compare
dcc1aba
to
f3655be
Compare
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.
Pull Request Overview
This PR updates the Rust project from the 2021 edition to the 2024 edition, addressing compatibility warnings and removing temporary lint suppressions. The update introduces minor lint issues that are fixed throughout the codebase.
- Updates workspace and package configurations to use the 2024 edition
- Fixes lint issues related to unnecessary variable assignments and simplified return statements
- Updates
std::future::Future
references to use the shorterFuture
type alias - Removes
unsafe
function usage warnings by adding properunsafe
blocks
Reviewed Changes
Copilot reviewed 27 out of 27 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
xsync/Cargo.toml | Updates workspace edition to 2024 |
Cargo.toml | Updates workspace edition to 2024 and removes 2024 compatibility lint suppressions |
Guide/mdbook-openvmm-shim/Cargo.toml | Updates package edition to 2024 |
Multiple .rs files | Simplifies return expressions and variable assignments per 2024 edition lints |
Future-related files | Updates std::future::Future to Future for conciseness |
support/mesh/mesh_process/src/lib.rs | Adds proper unsafe block for std::env::remove_var call |
f3655be
to
8bcd543
Compare
8bcd543
to
61208d1
Compare
I have spot checked about 50 of the 300-ish hits the remaining lints have, as well as manually searching for known potentially problematic patterns, and am relatively certain that the drop order changes will not affect us. Thus the last blocker is removed, and we can update. This naturally introduced a few new minor lint issues, so those are fixed here.
Closes #288