Skip to content

Commit abdac0d

Browse files
committed
rustc_codegen_ssa: add s390x_target_feature symbol
1 parent 71cd895 commit abdac0d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

compiler/rustc_codegen_ssa/src/target_features.rs

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ pub fn from_target_feature(
8080
Some(sym::loongarch_target_feature) => rust_features.loongarch_target_feature,
8181
Some(sym::lahfsahf_target_feature) => rust_features.lahfsahf_target_feature,
8282
Some(sym::prfchw_target_feature) => rust_features.prfchw_target_feature,
83+
Some(sym::s390x_target_feature) => rust_features.s390x_target_feature,
8384
Some(name) => bug!("unknown target feature gate {}", name),
8485
None => true,
8586
};

compiler/rustc_feature/src/unstable.rs

+1
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ declare_features! (
310310
(unstable, prfchw_target_feature, "1.78.0", Some(44839)),
311311
(unstable, riscv_target_feature, "1.45.0", Some(44839)),
312312
(unstable, rtm_target_feature, "1.35.0", Some(44839)),
313+
(unstable, s390x_target_feature, "CURRENT_RUSTC_VERSION", Some(44839)),
313314
(unstable, sse4a_target_feature, "1.27.0", Some(44839)),
314315
(unstable, tbm_target_feature, "1.27.0", Some(44839)),
315316
(unstable, wasm_target_feature, "1.30.0", Some(44839)),

0 commit comments

Comments
 (0)