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

Use unsafe extern #302

Open
yutannihilation opened this issue Oct 5, 2024 · 0 comments
Open

Use unsafe extern #302

yutannihilation opened this issue Oct 5, 2024 · 0 comments

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

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