Skip to content

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

Merged
merged 2 commits into from
Aug 19, 2025
Merged

Conversation

smalis-msft
Copy link
Contributor

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

@smalis-msft smalis-msft requested review from a team as code owners May 28, 2025 18:40
@github-actions github-actions bot added the Guide label May 28, 2025
@smalis-msft smalis-msft marked this pull request as draft May 28, 2025 21:23
@smalis-msft smalis-msft marked this pull request as ready for review June 16, 2025 18:54
@smalis-msft smalis-msft force-pushed the edition-2024 branch 2 times, most recently from 27ad5d3 to 33224bf Compare June 16, 2025 21:34
@smalis-msft smalis-msft enabled auto-merge (squash) June 17, 2025 14:53
@smalis-msft smalis-msft disabled auto-merge June 17, 2025 17:09
Copy link

@jstarks
Copy link
Member

jstarks commented Jun 23, 2025

Let's please wait until we are further along with the current release.

@smalis-msft smalis-msft marked this pull request as draft June 23, 2025 19:15
@smalis-msft smalis-msft marked this pull request as ready for review June 26, 2025 19:28
@smalis-msft
Copy link
Contributor Author

smalis-msft commented Jun 26, 2025

Now that 1.88 is out this is blocking us gaining access to if let chains.

@smalis-msft smalis-msft force-pushed the edition-2024 branch 3 times, most recently from 447bbbc to 8df548b Compare July 2, 2025 19:02
Copy link

Copy link

@smalis-msft smalis-msft enabled auto-merge (squash) July 17, 2025 17:56
Copy link

@smalis-msft smalis-msft disabled auto-merge July 24, 2025 14:46
@Copilot Copilot AI review requested due to automatic review settings August 11, 2025 20:20
Copy link
Contributor

@Copilot Copilot AI left a 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 shorter Future type alias
  • Removes unsafe function usage warnings by adding proper unsafe 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

@smalis-msft smalis-msft enabled auto-merge (squash) August 18, 2025 15:56
@smalis-msft smalis-msft merged commit 0460c27 into microsoft:main Aug 19, 2025
29 checks passed
@smalis-msft smalis-msft deleted the edition-2024 branch August 19, 2025 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenVMM Rust 2024 Compatibility
3 participants