Skip to content

Commit 89db345

Browse files
authored
Rollup merge of rust-lang#96483 - Urgau:check-cfg-target_feature, r=petrochenkov
Add missing `target_feature` to the list of well known cfg names This PR adds the missing `target_feature` cfg name to the list of well known cfg names. It was notice missing in rust-lang#96472 thanks to `@bjorn3,` the reason being that `--check-cfg=names()` automatically inherit the names passed by `--cfg` (or internal to `rustc`) and is seems that the vast majority of targets have at least one target feature leading to `target_feature` being a well known name in most target but it should always be a well known name so this PR add it unconditionally to list. r? `@petrochenkov`
2 parents 4c628bb + beb4e16 commit 89db345

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compiler/rustc_session/src/config.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,7 @@ impl CrateCheckConfig {
10431043
sym::target_has_atomic_load_store,
10441044
sym::target_has_atomic,
10451045
sym::target_has_atomic_equal_alignment,
1046+
sym::target_feature,
10461047
sym::panic,
10471048
sym::sanitize,
10481049
sym::debug_assertions,
@@ -1086,6 +1087,10 @@ impl CrateCheckConfig {
10861087
.into_iter()
10871088
.map(|sanitizer| Symbol::intern(sanitizer.as_str().unwrap()));
10881089

1090+
// Unknown possible values:
1091+
// - `feature`
1092+
// - `target_feature`
1093+
10891094
// No-values
10901095
for name in [
10911096
sym::doc,

0 commit comments

Comments
 (0)