We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d03812 commit c6e6cebCopy full SHA for c6e6ceb
compiler/rustc_mir_build/src/build/custom/mod.rs
@@ -118,7 +118,11 @@ fn parse_attribute(attr: &Attribute) -> MirPhase {
118
phase = Some(value);
119
}
120
other => {
121
- panic!("Unexpected key {}", other);
+ span_bug!(
122
+ nested.span(),
123
+ "Unexpected key while parsing custom_mir attribute: '{}'",
124
+ other
125
+ );
126
127
128
0 commit comments