We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11ebd80 commit 7a51cf1Copy full SHA for 7a51cf1
compiler/rustc_feature/src/active.rs
@@ -82,7 +82,10 @@ macro_rules! declare_features {
82
$(
83
sym::$feature => declare_features!(__status_to_bool $status),
84
)*
85
- _ => false,
+ // accepted and removed features aren't in this file but are never incomplete
86
+ _ if self.declared_lang_features.iter().any(|f| f.0 == feature) => false,
87
+ _ if self.declared_lib_features.iter().any(|f| f.0 == feature) => false,
88
+ _ => panic!("`{}` was not listed in `declare_features`", feature),
89
}
90
91
0 commit comments