Skip to content

Commit 366bc86

Browse files
committed
rustc_codegen_ssa: add s390x_target_feature symbol
1 parent c940d52 commit 366bc86

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
@@ -82,6 +82,7 @@ pub fn from_target_feature(
8282
Some(sym::prfchw_target_feature) => rust_features.prfchw_target_feature,
8383
Some(sym::x86_amx_intrinsics) => rust_features.x86_amx_intrinsics,
8484
Some(sym::xop_target_feature) => rust_features.xop_target_feature,
85+
Some(sym::s390x_target_feature) => rust_features.s390x_target_feature,
8586
Some(name) => bug!("unknown target feature gate {}", name),
8687
None => true,
8788
};

compiler/rustc_feature/src/unstable.rs

+1
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ declare_features! (
312312
(unstable, prfchw_target_feature, "1.78.0", Some(44839)),
313313
(unstable, riscv_target_feature, "1.45.0", Some(44839)),
314314
(unstable, rtm_target_feature, "1.35.0", Some(44839)),
315+
(unstable, s390x_target_feature, "CURRENT_RUSTC_VERSION", Some(44839)),
315316
(unstable, sse4a_target_feature, "1.27.0", Some(44839)),
316317
(unstable, tbm_target_feature, "1.27.0", Some(44839)),
317318
(unstable, wasm_target_feature, "1.30.0", Some(44839)),

0 commit comments

Comments
 (0)