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 was used in rust-lang/stdarch#1908 to mark
RDRAND safe, and this change is expected to be in 1.93.0 and is already
in nightly. Since uefi targets are only tested on nightly, we only saw
this lint on uefi, resulting in a misattribution of the behavior and an
incorrect comment.
Thus acknowledge that the intrinsics are safe and mark `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