From fe06593c6fcbacc92e99fcd94a3b8aba5a2ffb37 Mon Sep 17 00:00:00 2001 From: gnzlbg Date: Wed, 13 Feb 2019 16:06:45 +0100 Subject: [PATCH] allow_internal_unstable requires feature names Closes #681 . --- library/stdarch/crates/std_detect/src/detect/arch/aarch64.rs | 2 +- library/stdarch/crates/std_detect/src/detect/arch/arm.rs | 2 +- library/stdarch/crates/std_detect/src/detect/arch/mips.rs | 2 +- library/stdarch/crates/std_detect/src/detect/arch/mips64.rs | 2 +- library/stdarch/crates/std_detect/src/detect/arch/powerpc.rs | 2 +- library/stdarch/crates/std_detect/src/detect/arch/powerpc64.rs | 2 +- library/stdarch/crates/std_detect/src/detect/arch/x86.rs | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/library/stdarch/crates/std_detect/src/detect/arch/aarch64.rs b/library/stdarch/crates/std_detect/src/detect/arch/aarch64.rs index 7571dfbfec31..3270641eb347 100644 --- a/library/stdarch/crates/std_detect/src/detect/arch/aarch64.rs +++ b/library/stdarch/crates/std_detect/src/detect/arch/aarch64.rs @@ -3,7 +3,7 @@ /// Checks if `aarch64` feature is enabled. #[macro_export] #[unstable(feature = "stdsimd", issue = "27731")] -#[allow_internal_unstable] +#[allow_internal_unstable(stdsimd_internal)] macro_rules! is_aarch64_feature_detected { ("neon") => { // FIXME: this should be removed once we rename Aarch64 neon to asimd diff --git a/library/stdarch/crates/std_detect/src/detect/arch/arm.rs b/library/stdarch/crates/std_detect/src/detect/arch/arm.rs index 5f91c9269ad5..ebed1f757e3c 100644 --- a/library/stdarch/crates/std_detect/src/detect/arch/arm.rs +++ b/library/stdarch/crates/std_detect/src/detect/arch/arm.rs @@ -3,7 +3,7 @@ /// Checks if `arm` feature is enabled. #[macro_export] #[unstable(feature = "stdsimd", issue = "27731")] -#[allow_internal_unstable] +#[allow_internal_unstable(stdsimd_internal)] macro_rules! is_arm_feature_detected { ("neon") => { cfg!(target_feature = "neon") || diff --git a/library/stdarch/crates/std_detect/src/detect/arch/mips.rs b/library/stdarch/crates/std_detect/src/detect/arch/mips.rs index 58e3ee6d2047..969d6d05dc59 100644 --- a/library/stdarch/crates/std_detect/src/detect/arch/mips.rs +++ b/library/stdarch/crates/std_detect/src/detect/arch/mips.rs @@ -3,7 +3,7 @@ /// Checks if `mips` feature is enabled. #[macro_export] #[unstable(feature = "stdsimd", issue = "27731")] -#[allow_internal_unstable] +#[allow_internal_unstable(stdsimd_internal)] macro_rules! is_mips_feature_detected { ("msa") => { cfg!(target_feature = "msa") || diff --git a/library/stdarch/crates/std_detect/src/detect/arch/mips64.rs b/library/stdarch/crates/std_detect/src/detect/arch/mips64.rs index aa42c0e55df8..d421595c9cd7 100644 --- a/library/stdarch/crates/std_detect/src/detect/arch/mips64.rs +++ b/library/stdarch/crates/std_detect/src/detect/arch/mips64.rs @@ -3,7 +3,7 @@ /// Checks if `mips64` feature is enabled. #[macro_export] #[unstable(feature = "stdsimd", issue = "27731")] -#[allow_internal_unstable] +#[allow_internal_unstable(stdsimd_internal)] macro_rules! is_mips64_feature_detected { ("msa") => { cfg!(target_feature = "msa") || diff --git a/library/stdarch/crates/std_detect/src/detect/arch/powerpc.rs b/library/stdarch/crates/std_detect/src/detect/arch/powerpc.rs index 8270e5bee469..9d65437e0ba1 100644 --- a/library/stdarch/crates/std_detect/src/detect/arch/powerpc.rs +++ b/library/stdarch/crates/std_detect/src/detect/arch/powerpc.rs @@ -3,7 +3,7 @@ /// Checks if `powerpc` feature is enabled. #[macro_export] #[unstable(feature = "stdsimd", issue = "27731")] -#[allow_internal_unstable] +#[allow_internal_unstable(stdsimd_internal)] macro_rules! is_powerpc_feature_detected { ("altivec") => { cfg!(target_feature = "altivec") || diff --git a/library/stdarch/crates/std_detect/src/detect/arch/powerpc64.rs b/library/stdarch/crates/std_detect/src/detect/arch/powerpc64.rs index 2f754713650f..4514100907cb 100644 --- a/library/stdarch/crates/std_detect/src/detect/arch/powerpc64.rs +++ b/library/stdarch/crates/std_detect/src/detect/arch/powerpc64.rs @@ -3,7 +3,7 @@ /// Checks if `powerpc64` feature is enabled. #[macro_export] #[unstable(feature = "stdsimd", issue = "27731")] -#[allow_internal_unstable] +#[allow_internal_unstable(stdsimd_internal)] macro_rules! is_powerpc64_feature_detected { ("altivec") => { cfg!(target_feature = "altivec") || diff --git a/library/stdarch/crates/std_detect/src/detect/arch/x86.rs b/library/stdarch/crates/std_detect/src/detect/arch/x86.rs index 5425aeecd0c7..953bf29d6801 100644 --- a/library/stdarch/crates/std_detect/src/detect/arch/x86.rs +++ b/library/stdarch/crates/std_detect/src/detect/arch/x86.rs @@ -79,7 +79,7 @@ /// [docs]: https://software.intel.com/sites/landingpage/IntrinsicsGuide #[macro_export] #[stable(feature = "simd_x86", since = "1.27.0")] -#[allow_internal_unstable] +#[allow_internal_unstable(stdsimd_internal)] macro_rules! is_x86_feature_detected { ("aes") => { cfg!(target_feature = "aes") || $crate::detect::check_for(