Skip to content

Fix Rust edition 2024 compatibility #4259

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 1 commit into from
Nov 9, 2024

Conversation

daxpedda
Copy link
Collaborator

@daxpedda daxpedda commented Nov 9, 2024

This adds unsafe to all extern "C" { ... } generated blocks to account for edition 2024 requirements.
This changes the spans as suggested in #4218 (comment).

See rust-lang/rust#132425 for more information why this is a problem considering macro edition hygiene should account for this in the first place.

Fixes #4218.

@daxpedda daxpedda merged commit 5f70a71 into rustwasm:main Nov 9, 2024
41 checks passed
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.

"extern blocks must be unsafe" for 2024 edition
1 participant