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

Enable unsafe-attr-outside-unsafe 2024 edition lint #9964

Merged

Conversation

alexcrichton
Copy link
Member

This commit enables the unsafe-attr-outside-unsafe lint in rustc used in transitioning to the 2024 edition. This requires that the #[no_mangle] attribute is replaced in favor of #[unsafe(no_mangle)]. This mostly affects the C API of wasmtime and most of the changes here are a simple search/replace.

This commit enables the `unsafe-attr-outside-unsafe` lint in rustc used
in transitioning to the 2024 edition. This requires that the
`#[no_mangle]` attribute is replaced in favor of `#[unsafe(no_mangle)]`.
This mostly affects the C API of wasmtime and most of the changes here
are a simple search/replace.
@alexcrichton alexcrichton requested review from a team as code owners January 9, 2025 19:07
@alexcrichton alexcrichton requested review from pchickey and removed request for a team January 9, 2025 19:07
@alexcrichton alexcrichton added this pull request to the merge queue Jan 9, 2025
Merged via the queue into bytecodealliance:main with commit ae84e6e Jan 9, 2025
41 checks passed
@alexcrichton alexcrichton deleted the unsafe-attr-outside-unsafe branch January 9, 2025 21:30
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