Skip to content

Commit 7f83f8a

Browse files
committed
Reject unsound toggling of Arm atomics-32 target feature
1 parent 0cffe5c commit 7f83f8a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compiler/rustc_target/src/target_features.rs

+5
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ const ARM_FEATURES: &[(&str, Stability, ImpliedFeatures)] = &[
137137
// tidy-alphabetical-start
138138
("aclass", Unstable(sym::arm_target_feature), &[]),
139139
("aes", Unstable(sym::arm_target_feature), &["neon"]),
140+
(
141+
"atomics-32",
142+
Stability::Forbidden { reason: "unsound because it changes the ABI of atomic operations" },
143+
&[],
144+
),
140145
("crc", Unstable(sym::arm_target_feature), &[]),
141146
("d32", Unstable(sym::arm_target_feature), &[]),
142147
("dotprod", Unstable(sym::arm_target_feature), &["neon"]),

0 commit comments

Comments
 (0)