mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +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 {
|
match feature {
|
||||||
$( sym::$feature => &self.$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