mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-13 12:36:47 +00:00
Panic on trying to find non-feature incompleteness
This commit is contained in:
parent
11ebd80fe7
commit
7a51cf1186
@ -82,7 +82,10 @@ macro_rules! declare_features {
|
||||
$(
|
||||
sym::$feature => declare_features!(__status_to_bool $status),
|
||||
)*
|
||||
_ => false,
|
||||
// accepted and removed features aren't in this file but are never incomplete
|
||||
_ if self.declared_lang_features.iter().any(|f| f.0 == feature) => false,
|
||||
_ if self.declared_lib_features.iter().any(|f| f.0 == feature) => false,
|
||||
_ => panic!("`{}` was not listed in `declare_features`", feature),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user