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
In edition 2024 functions annotated with `target_feature(enable = "..")`
are unsafe to call from contexts not so annotated, and otherwise safe.
This is why the unsafe block around `rdrand_step` was considered unused
by rustc. Thus carry this through and make `rdrand` itself safe (when
called from an annotated context) and remove all the newly unused unsafe
blocks.
Link: https://doc.rust-lang.org/reference/attributes/codegen.html#r-attributes.codegen.target_feature.safety-restrictions.
0 commit comments