From c140a2fbd60a63688f2a8264ecc68d7e7a0b2896 Mon Sep 17 00:00:00 2001 From: WANG Rui Date: Mon, 6 Jan 2025 15:49:57 +0800 Subject: [PATCH] Partially stabilize LoongArch target features --- crates/core_arch/src/lib.rs | 3 +-- crates/std_detect/src/detect/arch/loongarch.rs | 16 ++++++++-------- crates/std_detect/src/detect/arch/mod.rs | 2 +- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/crates/core_arch/src/lib.rs b/crates/core_arch/src/lib.rs index b8f4c2625e..6c68a07211 100644 --- a/crates/core_arch/src/lib.rs +++ b/crates/core_arch/src/lib.rs @@ -72,8 +72,7 @@ feature( stdarch_arm_feature_detection, stdarch_powerpc_feature_detection, - stdarch_s390x_feature_detection, - stdarch_loongarch_feature_detection + stdarch_s390x_feature_detection ) )] diff --git a/crates/std_detect/src/detect/arch/loongarch.rs b/crates/std_detect/src/detect/arch/loongarch.rs index c55f4ea272..fd1b19e83e 100644 --- a/crates/std_detect/src/detect/arch/loongarch.rs +++ b/crates/std_detect/src/detect/arch/loongarch.rs @@ -16,20 +16,20 @@ features! { /// * `"lbt"` /// * `"lvz"` /// * `"ual"` - #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] - @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] f: "f"; + #[stable(feature = "stdarch_loongarch_feature", since = "1.88.0")] + @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.88.0")] f: "f"; /// F - @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] d: "d"; + @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.88.0")] d: "d"; /// D - @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] frecipe: "frecipe"; + @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.88.0")] frecipe: "frecipe"; /// Frecipe - @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] lsx: "lsx"; + @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.88.0")] lsx: "lsx"; /// LSX - @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] lasx: "lasx"; + @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.88.0")] lasx: "lasx"; /// LASX - @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] lbt: "lbt"; + @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.88.0")] lbt: "lbt"; /// LBT - @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] lvz: "lvz"; + @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.88.0")] lvz: "lvz"; /// LVZ @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] ual: "ual"; /// UAL diff --git a/crates/std_detect/src/detect/arch/mod.rs b/crates/std_detect/src/detect/arch/mod.rs index ff00c202de..88915e5b99 100644 --- a/crates/std_detect/src/detect/arch/mod.rs +++ b/crates/std_detect/src/detect/arch/mod.rs @@ -50,7 +50,7 @@ cfg_if! { #[unstable(feature = "stdarch_mips_feature_detection", issue = "111188")] pub use mips64::*; } else if #[cfg(target_arch = "loongarch64")] { - #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] + #[stable(feature = "stdarch_loongarch_feature", since = "1.88.0")] pub use loongarch::*; } else if #[cfg(target_arch = "s390x")] { #[unstable(feature = "stdarch_s390x_feature_detection", issue = "135413")]