Skip to content

Commit 2d56e4d

Browse files
taiki-etgross35
authored andcommitted
Ignore unused_unsafe lint in libm/src/math/arch/x86/detect.rs
1 parent 93d8cb5 commit 2d56e4d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

libm/src/math/arch/x86/detect.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ pub fn get_cpu_features() -> Flags {
3939
/// Implementation is taken from [std-detect][std-detect].
4040
///
4141
/// [std-detect]: https://github.com/rust-lang/stdarch/blob/690b3a6334d482874163bd6fcef408e0518febe9/crates/std_detect/src/detect/os/x86.rs#L142
42+
// FIXME(msrv): Remove unsafe block around __cpuid once https://github.com/rust-lang/stdarch/pull/1935 is available in MSRV.
43+
#[allow(unused_unsafe)]
4244
fn load_x86_features() -> Flags {
4345
let mut value = Flags::empty();
4446

0 commit comments

Comments
 (0)