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

Heads up for target_feature_11 #4228

Open
ehuss opened this issue Feb 13, 2025 · 0 comments
Open

Heads up for target_feature_11 #4228

ehuss opened this issue Feb 13, 2025 · 0 comments

Comments

@ehuss
Copy link
Contributor

ehuss commented Feb 13, 2025

Just wanted to give you a heads up that there may be a not entirely obvious change in Rust 1.86. The target_feature_11 change adds a new ability for Unsafe superpowers, which is to call safe functions with target features the caller function itself does not enable (particularly applicable to main or anything called from it, since main cannot have target features).

Previously it was required that these functions always be unsafe, but now they can be safe and be called safely if the caller enables the same features.

There's more information in rust-lang/reference#1735 and rust-lang/rust#134090.

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

No branches or pull requests

1 participant