Skip to content
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

Begin working towards Rust 2024 compatibility #289

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

smalis-msft
Copy link
Contributor

@smalis-msft smalis-msft commented Nov 11, 2024

This PR fixes up the easy issues with Rust 2024 compatibility and enables the lint for it. However it also scopes out some allows for the things that need some more work and focus. #288 is tracking them.

Changes in this PR:

  • extern blocks are now unsafe
  • gen is becoming a reserved keyword, rename variables
  • mark unsafe attributes other than linkme's
  • resolve the ambiguity of fn poll in VmbusSerialDriver

@smalis-msft smalis-msft requested review from a team as code owners November 11, 2024 18:33
Cargo.toml Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
@smalis-msft smalis-msft enabled auto-merge (squash) November 12, 2024 15:20
@smalis-msft smalis-msft merged commit c5a665c into microsoft:main Nov 12, 2024
24 checks passed
@smalis-msft smalis-msft deleted the rust-2024 branch November 12, 2024 17:10
benhillis pushed a commit to benhillis/openvmm that referenced this pull request Jan 15, 2025
This PR fixes up the easy issues with Rust 2024 compatibility and
enables the lint for it. However it also scopes out some allows for the
things that need some more work and focus. microsoft#288 is tracking them.

Changes in this PR:

- extern blocks are now unsafe
- `gen` is becoming a reserved keyword, rename variables
- mark unsafe attributes other than linkme's
- resolve the ambiguity of `fn poll` in VmbusSerialDriver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants