From e3f0124baf711f9a749d924346b9979ca665603e Mon Sep 17 00:00:00 2001 From: Jubilee Young Date: Thu, 15 Apr 2021 15:06:30 -0700 Subject: [PATCH] Silence warnings --- crates/core_simd/src/transmute.rs | 1 + crates/core_simd/tests/f32_ops.rs | 2 -- crates/core_simd/tests/f64_ops.rs | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/core_simd/src/transmute.rs b/crates/core_simd/src/transmute.rs index 835d863029c..b7072b334fd 100644 --- a/crates/core_simd/src/transmute.rs +++ b/crates/core_simd/src/transmute.rs @@ -1,4 +1,5 @@ /// Provides implementations of `From<$a> for $b` and `From<$b> for $a` that transmutes the value. +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] macro_rules! from_transmute { { unsafe $a:ty => $b:ty } => { from_transmute!{ @impl $a => $b } diff --git a/crates/core_simd/tests/f32_ops.rs b/crates/core_simd/tests/f32_ops.rs index 048c070a391..ac5499b7ffe 100644 --- a/crates/core_simd/tests/f32_ops.rs +++ b/crates/core_simd/tests/f32_ops.rs @@ -1,5 +1,3 @@ -#![feature(is_subnormal)] - #[macro_use] mod ops_macros; impl_float_tests! { SimdF32, f32, i32 } diff --git a/crates/core_simd/tests/f64_ops.rs b/crates/core_simd/tests/f64_ops.rs index 8f0dd6b7365..dcdb2aa3152 100644 --- a/crates/core_simd/tests/f64_ops.rs +++ b/crates/core_simd/tests/f64_ops.rs @@ -1,5 +1,3 @@ -#![feature(is_subnormal)] - #[macro_use] mod ops_macros; impl_float_tests! { SimdF64, f64, i64 }