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

chore: Update to Rust 2024 edition #335

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

chore: Update to Rust 2024 edition #335

wants to merge 1 commit into from

Conversation

vadorovsky
Copy link
Member

That includes the following changes in the standard:

  • unsafe calls need to be included in unsafe blocks explicitly, even inside unsafe functions, otherwise triggering a warning. That helps differentiating between unsafe calls (which can be safe, if we can guarantee that ourselves) and unsafe functions (which don't guarantee safety by themselves).
  • Unnecessary ref or mut keywords in match statements are compiler errors.

That includes the following changes in the standard:

* `unsafe` calls need to be included in `unsafe` blocks explicitly,
  even inside `unsafe` functions, otherwise triggering a warning. That
  helps differentiating between `unsafe` calls (which can be safe, if
  we can guarantee that ourselves) and `unsafe` functions (which don't
  guarantee safety by themselves).
* Unnecessary `ref` or `mut` keywords in match statements are compiler
  errors.
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.

1 participant