Skip to content

Commit e07447c

Browse files
committed
Whitelist stable target-features in typeck
1 parent ec5d494 commit e07447c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/librustc_typeck/collect.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2362,14 +2362,16 @@ fn from_target_feature(
23622362
Some(sym::mips_target_feature) => rust_features.mips_target_feature,
23632363
Some(sym::avx512_target_feature) => rust_features.avx512_target_feature,
23642364
Some(sym::mmx_target_feature) => rust_features.mmx_target_feature,
2365-
Some(sym::sse4a_target_feature) => rust_features.sse4a_target_feature,
2366-
Some(sym::tbm_target_feature) => rust_features.tbm_target_feature,
23672365
Some(sym::wasm_target_feature) => rust_features.wasm_target_feature,
23682366
Some(sym::cmpxchg16b_target_feature) => rust_features.cmpxchg16b_target_feature,
2369-
Some(sym::adx_target_feature) => rust_features.adx_target_feature,
23702367
Some(sym::movbe_target_feature) => rust_features.movbe_target_feature,
23712368
Some(sym::rtm_target_feature) => rust_features.rtm_target_feature,
23722369
Some(sym::f16c_target_feature) => rust_features.f16c_target_feature,
2370+
// These are stable:
2371+
| Some(sym::sse4a_target_feature)
2372+
| Some(sym::tbm_target_feature)
2373+
| Some(sym::adx_target_feature)
2374+
=> true,
23732375
Some(name) => bug!("unknown target feature gate {}", name),
23742376
None => true,
23752377
};

0 commit comments

Comments
 (0)