Skip to content

Commit 3200d1f

Browse files
committed
Stabilize sse4a and tbm target features
- remove some stabilized target features from `gate.rs`
1 parent edc3841 commit 3200d1f

File tree

6 files changed

+6
-14
lines changed

6 files changed

+6
-14
lines changed

compiler/rustc_feature/src/accepted.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,8 @@ declare_features! (
396396
(accepted, slice_patterns, "1.42.0", Some(62254)),
397397
/// Allows use of `&foo[a..b]` as a slicing syntax.
398398
(accepted, slicing_syntax, "1.0.0", None),
399+
/// Allows use of `sse4a` target feature.
400+
(accepted, sse4a_target_feature, "CURRENT_RUSTC_VERSION", Some(44839)),
399401
/// Allows elision of `'static` lifetimes in `static`s and `const`s.
400402
(accepted, static_in_const, "1.17.0", Some(35897)),
401403
/// Allows the definition recursive static items.
@@ -408,6 +410,8 @@ declare_features! (
408410
(accepted, target_feature, "1.27.0", None),
409411
/// Allows the use of `#[target_feature]` on safe functions.
410412
(accepted, target_feature_11, "1.86.0", Some(69098)),
413+
/// Allows use of `tbm` target feature.
414+
(accepted, tbm_target_feature, "CURRENT_RUSTC_VERSION", Some(44839)),
411415
/// Allows `fn main()` with return types which implements `Termination` (RFC 1937).
412416
(accepted, termination_trait, "1.26.0", Some(43301)),
413417
/// Allows `#[test]` functions where the return type implements `Termination` (RFC 1937).

compiler/rustc_feature/src/unstable.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,6 @@ declare_features! (
335335
(unstable, rtm_target_feature, "1.35.0", Some(44839)),
336336
(unstable, s390x_target_feature, "1.82.0", Some(44839)),
337337
(unstable, sparc_target_feature, "1.84.0", Some(132783)),
338-
(unstable, sse4a_target_feature, "1.27.0", Some(44839)),
339-
(unstable, tbm_target_feature, "1.27.0", Some(44839)),
340338
(unstable, wasm_target_feature, "1.30.0", Some(44839)),
341339
(unstable, x87_target_feature, "1.85.0", Some(44839)),
342340
// !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!!

compiler/rustc_target/src/target_features.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,9 +471,9 @@ static X86_FEATURES: &[(&str, Stability, ImpliedFeatures)] = &[
471471
("sse3", Stable, &["sse2"]),
472472
("sse4.1", Stable, &["ssse3"]),
473473
("sse4.2", Stable, &["sse4.1"]),
474-
("sse4a", Unstable(sym::sse4a_target_feature), &["sse3"]),
474+
("sse4a", Stable, &["sse3"]),
475475
("ssse3", Stable, &["sse3"]),
476-
("tbm", Unstable(sym::tbm_target_feature), &[]),
476+
("tbm", Stable, &[]),
477477
("vaes", Stable, &["avx2", "aes"]),
478478
("vpclmulqdq", Stable, &["avx", "pclmulqdq"]),
479479
("widekl", Stable, &["kl"]),

library/core/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,6 @@
199199
#![feature(riscv_target_feature)]
200200
#![feature(rtm_target_feature)]
201201
#![feature(s390x_target_feature)]
202-
#![feature(sse4a_target_feature)]
203-
#![feature(tbm_target_feature)]
204202
#![feature(wasm_target_feature)]
205203
#![feature(x86_amx_intrinsics)]
206204
// tidy-alphabetical-end

library/stdarch/crates/core_arch/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
rustc_attrs,
1919
staged_api,
2020
doc_cfg,
21-
tbm_target_feature,
22-
sse4a_target_feature,
2321
riscv_target_feature,
2422
arm_target_feature,
2523
mips_target_feature,

tests/ui/target-feature/gate.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
//@ only-x86_64
22
//
3-
// gate-test-sse4a_target_feature
43
// gate-test-powerpc_target_feature
5-
// gate-test-tbm_target_feature
64
// gate-test-arm_target_feature
75
// gate-test-hexagon_target_feature
86
// gate-test-mips_target_feature
97
// gate-test-wasm_target_feature
10-
// gate-test-adx_target_feature
11-
// gate-test-cmpxchg16b_target_feature
12-
// gate-test-movbe_target_feature
138
// gate-test-rtm_target_feature
14-
// gate-test-f16c_target_feature
159
// gate-test-riscv_target_feature
1610
// gate-test-ermsb_target_feature
1711
// gate-test-bpf_target_feature

0 commit comments

Comments
 (0)