Skip to content

Commit 7230afc

Browse files
heiherAmanieu
authored andcommitted
Partially stabilize LoongArch target features
1 parent 1a046f6 commit 7230afc

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

crates/core_arch/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@
7272
feature(
7373
stdarch_arm_feature_detection,
7474
stdarch_powerpc_feature_detection,
75-
stdarch_s390x_feature_detection,
76-
stdarch_loongarch_feature_detection
75+
stdarch_s390x_feature_detection
7776
)
7877
)]
7978

crates/std_detect/src/detect/arch/loongarch.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ features! {
2121
/// * `"lbt"`
2222
/// * `"lvz"`
2323
/// * `"ual"`
24-
#[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")]
25-
@FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] f: "f";
24+
#[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")]
25+
@FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] f: "f";
2626
/// F
27-
@FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] d: "d";
27+
@FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] d: "d";
2828
/// D
29-
@FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] frecipe: "frecipe";
29+
@FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] frecipe: "frecipe";
3030
/// Frecipe
3131
@FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] div32: "div32";
3232
/// Div32
33-
@FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] lsx: "lsx";
33+
@FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] lsx: "lsx";
3434
/// LSX
35-
@FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] lasx: "lasx";
35+
@FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] lasx: "lasx";
3636
/// LASX
3737
@FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] lam_bh: "lam-bh";
3838
/// LAM-BH
@@ -42,9 +42,9 @@ features! {
4242
/// LD-SEQ-SA
4343
@FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] scq: "scq";
4444
/// SCQ
45-
@FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] lbt: "lbt";
45+
@FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] lbt: "lbt";
4646
/// LBT
47-
@FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] lvz: "lvz";
47+
@FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] lvz: "lvz";
4848
/// LVZ
4949
@FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] ual: "ual";
5050
/// UAL

crates/std_detect/src/detect/arch/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ cfg_if! {
5050
#[unstable(feature = "stdarch_mips_feature_detection", issue = "111188")]
5151
pub use mips64::*;
5252
} else if #[cfg(target_arch = "loongarch64")] {
53-
#[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")]
53+
#[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")]
5454
pub use loongarch::*;
5555
} else if #[cfg(target_arch = "s390x")] {
5656
#[unstable(feature = "stdarch_s390x_feature_detection", issue = "135413")]

0 commit comments

Comments
 (0)