diff --git a/library/stdarch/stdsimd/arch/detect/arch/aarch64.rs b/library/stdarch/stdsimd/arch/detect/arch/aarch64.rs index f741d862c783..7d14fdb50905 100644 --- a/library/stdarch/stdsimd/arch/detect/arch/aarch64.rs +++ b/library/stdarch/stdsimd/arch/detect/arch/aarch64.rs @@ -2,6 +2,7 @@ #[macro_export] #[unstable(feature = "stdsimd", issue = "0")] +#[allow_internal_unstable] macro_rules! is_aarch64_feature_detected { ("neon") => { // FIXME: this should be removed once we rename Aarch64 neon to asimd @@ -74,6 +75,7 @@ macro_rules! is_aarch64_feature_detected { #[doc(hidden)] #[allow(non_camel_case_types)] #[repr(u8)] +#[unstable(feature = "stdsimd_internal", issue = "0")] pub enum Feature { /// ARM Advanced SIMD (ASIMD) asimd, diff --git a/library/stdarch/stdsimd/arch/detect/arch/arm.rs b/library/stdarch/stdsimd/arch/detect/arch/arm.rs index 08b6a7e87eb2..814eb32d869f 100644 --- a/library/stdarch/stdsimd/arch/detect/arch/arm.rs +++ b/library/stdarch/stdsimd/arch/detect/arch/arm.rs @@ -2,6 +2,7 @@ #[macro_export] #[unstable(feature = "stdsimd", issue = "0")] +#[allow_internal_unstable] macro_rules! is_arm_feature_detected { ("neon") => { cfg!(target_feature = "neon") || @@ -25,6 +26,7 @@ macro_rules! is_arm_feature_detected { #[doc(hidden)] #[allow(non_camel_case_types)] #[repr(u8)] +#[unstable(feature = "stdsimd_internal", issue = "0")] pub enum Feature { /// ARM Advanced SIMD (NEON) - Aarch32 neon, diff --git a/library/stdarch/stdsimd/arch/detect/arch/mips.rs b/library/stdarch/stdsimd/arch/detect/arch/mips.rs index 0ee8c5126f6c..492f2511bb78 100644 --- a/library/stdarch/stdsimd/arch/detect/arch/mips.rs +++ b/library/stdarch/stdsimd/arch/detect/arch/mips.rs @@ -2,6 +2,7 @@ #[macro_export] #[unstable(feature = "stdsimd", issue = "0")] +#[allow_internal_unstable] macro_rules! is_mips_feature_detected { ("msa") => { cfg!(target_feature = "msa") || @@ -17,6 +18,7 @@ macro_rules! is_mips_feature_detected { #[doc(hidden)] #[allow(non_camel_case_types)] #[repr(u8)] +#[unstable(feature = "stdsimd_internal", issue = "0")] pub enum Feature { /// MIPS SIMD Architecture (MSA) msa, diff --git a/library/stdarch/stdsimd/arch/detect/arch/mips64.rs b/library/stdarch/stdsimd/arch/detect/arch/mips64.rs index 71d30d917bb0..9599308c43d5 100644 --- a/library/stdarch/stdsimd/arch/detect/arch/mips64.rs +++ b/library/stdarch/stdsimd/arch/detect/arch/mips64.rs @@ -2,6 +2,7 @@ #[macro_export] #[unstable(feature = "stdsimd", issue = "0")] +#[allow_internal_unstable] macro_rules! is_mips64_feature_detected { ("msa") => { cfg!(target_feature = "msa") || @@ -17,6 +18,7 @@ macro_rules! is_mips64_feature_detected { #[doc(hidden)] #[allow(non_camel_case_types)] #[repr(u8)] +#[unstable(feature = "stdsimd_internal", issue = "0")] pub enum Feature { /// MIPS SIMD Architecture (MSA) msa, diff --git a/library/stdarch/stdsimd/arch/detect/arch/powerpc64.rs b/library/stdarch/stdsimd/arch/detect/arch/powerpc64.rs index 6918106e744a..81f861b81fd0 100644 --- a/library/stdarch/stdsimd/arch/detect/arch/powerpc64.rs +++ b/library/stdarch/stdsimd/arch/detect/arch/powerpc64.rs @@ -2,6 +2,7 @@ #[macro_export] #[unstable(feature = "stdsimd", issue = "0")] +#[allow_internal_unstable] macro_rules! is_powerpc64_feature_detected { ("altivec") => { cfg!(target_feature = "altivec") || @@ -26,6 +27,7 @@ macro_rules! is_powerpc64_feature_detected { #[doc(hidden)] #[allow(non_camel_case_types)] #[repr(u8)] +#[unstable(feature = "stdsimd_internal", issue = "0")] pub enum Feature { /// Altivec altivec, diff --git a/library/stdarch/stdsimd/arch/detect/arch/x86.rs b/library/stdarch/stdsimd/arch/detect/arch/x86.rs index ed08bea3c640..5faaff316a12 100644 --- a/library/stdarch/stdsimd/arch/detect/arch/x86.rs +++ b/library/stdarch/stdsimd/arch/detect/arch/x86.rs @@ -234,10 +234,11 @@ macro_rules! is_x86_feature_detected { /// X86 CPU Feature enum. Each variant denotes a position in a bitset for a /// particular feature. /// -/// PLEASE: do not use this, it is an implementation detail subject to change. -#[doc(hidden)] +/// This is an unstable implementation detail subject to change. #[allow(non_camel_case_types)] #[repr(u8)] +#[doc(hidden)] +#[unstable(feature = "stdsimd_internal", issue = "0")] pub enum Feature { /// AES (Advanced Encryption Standard New Instructions AES-NI) aes,