We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2ea45f commit 558282aCopy full SHA for 558282a
src/backends/rdrand.rs
@@ -77,6 +77,8 @@ fn is_rdrand_good() -> bool {
77
{
78
// SAFETY: All Rust x86 targets are new enough to have CPUID, and we
79
// check that leaf 1 is supported before using it.
80
+ //
81
+ // TODO(MSRV 1.94): remove allow(unused_unsafe) and the unsafe blocks for `__cpuid`.
82
#[allow(unused_unsafe)]
83
let cpuid0 = unsafe { arch::__cpuid(0) };
84
if cpuid0.eax < 1 {
0 commit comments