You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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, sincemain
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.
The text was updated successfully, but these errors were encountered: