mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
Improve message when active feature indexing panics
This commit is contained in:
parent
3325671036
commit
2add77dffb
@ -61,7 +61,7 @@ macro_rules! declare_features {
|
||||
match feature {
|
||||
$( sym::$feature => &self.$feature, )*
|
||||
|
||||
_ => panic!("{} was not defined in `declare_features`", feature),
|
||||
_ => panic!("`{}` was not listed in `declare_features`", feature),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user