Skip to content

Commit c4a6a10

Browse files
authored
Unrolled build for #154510
Rollup merge of #154510 - heiher:stabilize-loongarch-target-features, r=Amanieu Partially stabilize LoongArch target features This PR stabilizes the following target features: - div32 - lam-bh - lamcas - ld-seq-sa - scq Docs PR: rust-lang/reference#2217 r? @Amanieu
2 parents 52b6e2c + d3a782d commit c4a6a10

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

compiler/rustc_target/src/target_features.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -829,18 +829,18 @@ static LOONGARCH_FEATURES: &[(&str, Stability, ImpliedFeatures)] = &[
829829
// tidy-alphabetical-start
830830
("32s", Unstable(sym::loongarch_target_feature), &[]),
831831
("d", Stable, &["f"]),
832-
("div32", Unstable(sym::loongarch_target_feature), &[]),
832+
("div32", Stable, &[]),
833833
("f", Stable, &[]),
834834
("frecipe", Stable, &[]),
835-
("lam-bh", Unstable(sym::loongarch_target_feature), &[]),
836-
("lamcas", Unstable(sym::loongarch_target_feature), &[]),
835+
("lam-bh", Stable, &[]),
836+
("lamcas", Stable, &[]),
837837
("lasx", Stable, &["lsx"]),
838838
("lbt", Stable, &[]),
839-
("ld-seq-sa", Unstable(sym::loongarch_target_feature), &[]),
839+
("ld-seq-sa", Stable, &[]),
840840
("lsx", Stable, &["d"]),
841841
("lvz", Stable, &[]),
842842
("relax", Unstable(sym::loongarch_target_feature), &[]),
843-
("scq", Unstable(sym::loongarch_target_feature), &[]),
843+
("scq", Stable, &[]),
844844
("ual", Unstable(sym::loongarch_target_feature), &[]),
845845
// tidy-alphabetical-end
846846
];

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ features! {
3535
/// D
3636
@FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] frecipe: "frecipe";
3737
/// Frecipe
38-
@FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] div32: "div32";
38+
@FEATURE: #[stable(feature = "stdarch_loongarch_div32", since = "CURRENT_RUSTC_VERSION")] div32: "div32";
3939
/// Div32
4040
@FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] lsx: "lsx";
4141
/// LSX
4242
@FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] lasx: "lasx";
4343
/// LASX
44-
@FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] lam_bh: "lam-bh";
44+
@FEATURE: #[stable(feature = "stdarch_loongarch_lam_bh", since = "CURRENT_RUSTC_VERSION")] lam_bh: "lam-bh";
4545
/// LAM-BH
46-
@FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] lamcas: "lamcas";
46+
@FEATURE: #[stable(feature = "stdarch_loongarch_lamcas", since = "CURRENT_RUSTC_VERSION")] lamcas: "lamcas";
4747
/// LAM-CAS
48-
@FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] ld_seq_sa: "ld-seq-sa";
48+
@FEATURE: #[stable(feature = "stdarch_loongarch_ld_seq_sa", since = "CURRENT_RUSTC_VERSION")] ld_seq_sa: "ld-seq-sa";
4949
/// LD-SEQ-SA
50-
@FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] scq: "scq";
50+
@FEATURE: #[stable(feature = "stdarch_loongarch_scq", since = "CURRENT_RUSTC_VERSION")] scq: "scq";
5151
/// SCQ
5252
@FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] lbt: "lbt";
5353
/// LBT

0 commit comments

Comments
 (0)