Skip to content

Conversation

@daxpedda
Copy link
Member

@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 wasm-bindgen: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