Skip to content

Use unsafe extern #302

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

Open
yutannihilation opened this issue Oct 5, 2024 · 1 comment
Open

Use unsafe extern #302

yutannihilation opened this issue Oct 5, 2024 · 1 comment

Comments

@yutannihilation
Copy link
Owner

rust-lang/rust#127921 says:

Starting in Rust 2024, all extern blocks must be marked as unsafe.

So, in order to be compatible with the 2024 edition, all extern blocks must be marked as unsafe explicitly. However, this feature is stabilized at Rust 1.82. So, this requires a version switch by rustversion.

cf. https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-extern.html

@yutannihilation
Copy link
Owner Author

Hmm, 1.82 is probably still a bit too new...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant