Skip to content

Commit a664135

Browse files
committed
stabilize s390x_target_feature_vector
1 parent 322e4a1 commit a664135

File tree

12 files changed

+30
-33
lines changed

12 files changed

+30
-33
lines changed

compiler/rustc_feature/src/accepted.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,8 @@ declare_features! (
387387
(accepted, return_position_impl_trait_in_trait, "1.75.0", Some(91611)),
388388
/// Allows code like `let x: &'static u32 = &42` to work (RFC 1414).
389389
(accepted, rvalue_static_promotion, "1.21.0", Some(38865)),
390+
/// Allows use of the `vector` and related s390x target features.
391+
(accepted, s390x_target_feature_vector, "CURRENT_RUSTC_VERSION", Some(145649)),
390392
/// Allows `Self` in type definitions (RFC 2300).
391393
(accepted, self_in_typedefs, "1.32.0", Some(49303)),
392394
/// Allows `Self` struct constructor (RFC 2302).

compiler/rustc_feature/src/unstable.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,6 @@ declare_features! (
333333
(unstable, riscv_target_feature, "1.45.0", Some(44839)),
334334
(unstable, rtm_target_feature, "1.35.0", Some(44839)),
335335
(unstable, s390x_target_feature, "1.82.0", Some(44839)),
336-
(unstable, s390x_target_feature_vector, "CURRENT_RUSTC_VERSION", Some(145649)),
337336
(unstable, sparc_target_feature, "1.84.0", Some(132783)),
338337
(unstable, wasm_target_feature, "1.30.0", Some(44839)),
339338
(unstable, x87_target_feature, "1.85.0", Some(44839)),

compiler/rustc_target/src/target_features.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -845,20 +845,20 @@ const IBMZ_FEATURES: &[(&str, Stability, ImpliedFeatures)] = &[
845845
("message-security-assist-extension8", Unstable(sym::s390x_target_feature), &["message-security-assist-extension3"]),
846846
("message-security-assist-extension9", Unstable(sym::s390x_target_feature), &["message-security-assist-extension3", "message-security-assist-extension4"]),
847847
("message-security-assist-extension12", Unstable(sym::s390x_target_feature), &[]),
848-
("miscellaneous-extensions-2", Unstable(sym::s390x_target_feature_vector), &[]),
849-
("miscellaneous-extensions-3", Unstable(sym::s390x_target_feature_vector), &[]),
850-
("miscellaneous-extensions-4", Unstable(sym::s390x_target_feature_vector), &[]),
851-
("nnp-assist", Unstable(sym::s390x_target_feature_vector), &["vector"]),
848+
("miscellaneous-extensions-2", Stable, &[]),
849+
("miscellaneous-extensions-3", Stable, &[]),
850+
("miscellaneous-extensions-4", Stable, &[]),
851+
("nnp-assist", Stable, &["vector"]),
852852
("soft-float", Forbidden { reason: "currently unsupported ABI-configuration feature" }, &[]),
853853
("transactional-execution", Unstable(sym::s390x_target_feature), &[]),
854-
("vector", Unstable(sym::s390x_target_feature_vector), &[]),
855-
("vector-enhancements-1", Unstable(sym::s390x_target_feature_vector), &["vector"]),
856-
("vector-enhancements-2", Unstable(sym::s390x_target_feature_vector), &["vector-enhancements-1"]),
857-
("vector-enhancements-3", Unstable(sym::s390x_target_feature_vector), &["vector-enhancements-2"]),
858-
("vector-packed-decimal", Unstable(sym::s390x_target_feature_vector), &["vector"]),
859-
("vector-packed-decimal-enhancement", Unstable(sym::s390x_target_feature_vector), &["vector-packed-decimal"]),
860-
("vector-packed-decimal-enhancement-2", Unstable(sym::s390x_target_feature_vector), &["vector-packed-decimal-enhancement"]),
861-
("vector-packed-decimal-enhancement-3", Unstable(sym::s390x_target_feature_vector), &["vector-packed-decimal-enhancement-2"]),
854+
("vector", Stable, &[]),
855+
("vector-enhancements-1", Stable, &["vector"]),
856+
("vector-enhancements-2", Stable, &["vector-enhancements-1"]),
857+
("vector-enhancements-3", Stable, &["vector-enhancements-2"]),
858+
("vector-packed-decimal", Stable, &["vector"]),
859+
("vector-packed-decimal-enhancement", Stable, &["vector-packed-decimal"]),
860+
("vector-packed-decimal-enhancement-2", Stable, &["vector-packed-decimal-enhancement"]),
861+
("vector-packed-decimal-enhancement-3", Stable, &["vector-packed-decimal-enhancement-2"]),
862862
// tidy-alphabetical-end
863863
];
864864

library/core/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@
202202
#![feature(riscv_target_feature)]
203203
#![feature(rtm_target_feature)]
204204
#![feature(s390x_target_feature)]
205-
#![feature(s390x_target_feature_vector)]
206205
#![feature(wasm_target_feature)]
207206
#![feature(x86_amx_intrinsics)]
208207
// tidy-alphabetical-end

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,30 +29,30 @@ features! {
2929
/// s390x message-security-assist-extension9 facility
3030
@FEATURE: #[unstable(feature = "s390x_target_feature", issue = "44839")] message_security_assist_extension12: "message-security-assist-extension12";
3131
/// s390x message-security-assist-extension12 facility
32-
@FEATURE: #[unstable(feature = "s390x_target_feature_vector", issue = "145649")] miscellaneous_extensions_2: "miscellaneous-extensions-2";
32+
@FEATURE: #[stable(feature = "s390x_target_feature_vector", since = "CURRENT_RUSTC_VERSION")] miscellaneous_extensions_2: "miscellaneous-extensions-2";
3333
/// s390x miscellaneous-extensions-2 facility
34-
@FEATURE: #[unstable(feature = "s390x_target_feature_vector", issue = "145649")] miscellaneous_extensions_3: "miscellaneous-extensions-3";
34+
@FEATURE: #[stable(feature = "s390x_target_feature_vector", since = "CURRENT_RUSTC_VERSION")] miscellaneous_extensions_3: "miscellaneous-extensions-3";
3535
/// s390x miscellaneous-extensions-3 facility
36-
@FEATURE: #[unstable(feature = "s390x_target_feature_vector", issue = "145649")] miscellaneous_extensions_4: "miscellaneous-extensions-4";
36+
@FEATURE: #[stable(feature = "s390x_target_feature_vector", since = "CURRENT_RUSTC_VERSION")] miscellaneous_extensions_4: "miscellaneous-extensions-4";
3737
/// s390x miscellaneous-extensions-4 facility
38-
@FEATURE: #[unstable(feature = "s390x_target_feature_vector", issue = "145649")] nnp_assist: "nnp-assist";
38+
@FEATURE: #[stable(feature = "s390x_target_feature_vector", since = "CURRENT_RUSTC_VERSION")] nnp_assist: "nnp-assist";
3939
/// s390x nnp-assist facility
4040
@FEATURE: #[unstable(feature = "s390x_target_feature", issue = "44839")] transactional_execution: "transactional-execution";
4141
/// s390x transactional-execution facility
42-
@FEATURE: #[unstable(feature = "s390x_target_feature_vector", issue = "145649")] vector: "vector";
42+
@FEATURE: #[stable(feature = "s390x_target_feature_vector", since = "CURRENT_RUSTC_VERSION")] vector: "vector";
4343
/// s390x vector facility
44-
@FEATURE: #[unstable(feature = "s390x_target_feature_vector", issue = "145649")] vector_enhancements_1: "vector-enhancements-1";
44+
@FEATURE: #[stable(feature = "s390x_target_feature_vector", since = "CURRENT_RUSTC_VERSION")] vector_enhancements_1: "vector-enhancements-1";
4545
/// s390x vector-enhancements-1 facility
46-
@FEATURE: #[unstable(feature = "s390x_target_feature_vector", issue = "145649")] vector_enhancements_2: "vector-enhancements-2";
46+
@FEATURE: #[stable(feature = "s390x_target_feature_vector", since = "CURRENT_RUSTC_VERSION")] vector_enhancements_2: "vector-enhancements-2";
4747
/// s390x vector-enhancements-2 facility
48-
@FEATURE: #[unstable(feature = "s390x_target_feature_vector", issue = "145649")] vector_enhancements_3: "vector-enhancements-3";
48+
@FEATURE: #[stable(feature = "s390x_target_feature_vector", since = "CURRENT_RUSTC_VERSION")] vector_enhancements_3: "vector-enhancements-3";
4949
/// s390x vector-enhancements-3 facility
50-
@FEATURE: #[unstable(feature = "s390x_target_feature_vector", issue = "145649")] vector_packed_decimal: "vector-packed-decimal";
50+
@FEATURE: #[stable(feature = "s390x_target_feature_vector", since = "CURRENT_RUSTC_VERSION")] vector_packed_decimal: "vector-packed-decimal";
5151
/// s390x vector-packed-decimal facility
52-
@FEATURE: #[unstable(feature = "s390x_target_feature_vector", issue = "145649")] vector_packed_decimal_enhancement: "vector-packed-decimal-enhancement";
52+
@FEATURE: #[stable(feature = "s390x_target_feature_vector", since = "CURRENT_RUSTC_VERSION")] vector_packed_decimal_enhancement: "vector-packed-decimal-enhancement";
5353
/// s390x vector-packed-decimal-enhancement facility
54-
@FEATURE: #[unstable(feature = "s390x_target_feature_vector", issue = "145649")] vector_packed_decimal_enhancement_2: "vector-packed-decimal-enhancement-2";
54+
@FEATURE: #[stable(feature = "s390x_target_feature_vector", since = "CURRENT_RUSTC_VERSION")] vector_packed_decimal_enhancement_2: "vector-packed-decimal-enhancement-2";
5555
/// s390x vector-packed-decimal-enhancement-2 facility
56-
@FEATURE: #[unstable(feature = "s390x_target_feature_vector", issue = "145649")] vector_packed_decimal_enhancement_3: "vector-packed-decimal-enhancement-3";
56+
@FEATURE: #[stable(feature = "s390x_target_feature_vector", since = "CURRENT_RUSTC_VERSION")] vector_packed_decimal_enhancement_3: "vector-packed-decimal-enhancement-3";
5757
/// s390x vector-packed-decimal-enhancement-3 facility
5858
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
arm_target_feature,
2323
mips_target_feature,
2424
powerpc_target_feature,
25-
s390x_target_feature_vector,
2625
loongarch_target_feature,
2726
wasm_target_feature,
2827
abi_unadjusted,

tests/assembly-llvm/s390x-vector-abi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//@[z13_no_vector] compile-flags: --target s390x-unknown-linux-gnu -C target-cpu=z13 -C target-feature=-vector --cfg no_vector
1313
//@[z13_no_vector] needs-llvm-components: systemz
1414

15-
#![feature(no_core, lang_items, repr_simd, s390x_target_feature_vector)]
15+
#![feature(no_core, lang_items, repr_simd)]
1616
#![no_core]
1717
#![crate_type = "lib"]
1818
#![allow(non_camel_case_types)]

tests/codegen-llvm/s390x-simd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#![crate_type = "rlib"]
88
#![feature(no_core, asm_experimental_arch)]
9-
#![feature(s390x_target_feature_vector, simd_ffi, intrinsics, repr_simd)]
9+
#![feature(simd_ffi, intrinsics, repr_simd)]
1010
#![no_core]
1111

1212
extern crate minicore;

tests/codegen-llvm/simd/extract-insert-dyn.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
repr_simd,
66
arm_target_feature,
77
mips_target_feature,
8-
s390x_target_feature_vector,
98
riscv_target_feature
109
)]
1110
#![no_std]

tests/ui/abi/simd-abi-checks-s390x.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//@[z13_soft_float] needs-llvm-components: systemz
1111
//[z13_soft_float]~? WARN must be disabled to ensure that the ABI of the current target can be implemented correctly
1212

13-
#![feature(no_core, repr_simd, s390x_target_feature_vector)]
13+
#![feature(no_core, repr_simd)]
1414
#![no_core]
1515
#![crate_type = "lib"]
1616
#![allow(non_camel_case_types, improper_ctypes_definitions)]

0 commit comments

Comments
 (0)