mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-02 17:44:28 +00:00
Rollup merge of #113039 - matthiaskrgr:custom_mir, r=compiler-errors
make custom mir ICE a bit nicer
This commit is contained in:
@@ -118,7 +118,11 @@ fn parse_attribute(attr: &Attribute) -> MirPhase {
|
||||
phase = Some(value);
|
||||
}
|
||||
other => {
|
||||
panic!("Unexpected key {}", other);
|
||||
span_bug!(
|
||||
nested.span(),
|
||||
"Unexpected key while parsing custom_mir attribute: '{}'",
|
||||
other
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user