generalize 'forbidden feature' concept so that even (un)stable feature can be invalid to toggle
Also rename some things for extra clarity
This commit is contained in:
parent
1f3bf231e1
commit
2d887a5c5c
13 changed files with 468 additions and 401 deletions
|
@ -371,7 +371,7 @@ impl CheckCfg {
|
|||
|
||||
ins!(sym::target_feature, empty_values).extend(
|
||||
rustc_target::target_features::all_rust_features()
|
||||
.filter(|(_, s)| s.is_supported())
|
||||
.filter(|(_, s)| s.in_cfg())
|
||||
.map(|(f, _s)| f)
|
||||
.chain(rustc_target::target_features::RUSTC_SPECIFIC_FEATURES.iter().cloned())
|
||||
.map(Symbol::intern),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue