Skip to content

Commit

Permalink
Rollup merge of #113039 - matthiaskrgr:custom_mir, r=compiler-errors
Browse files Browse the repository at this point in the history
make custom mir ICE a bit nicer
  • Loading branch information
matthiaskrgr authored Jun 27, 2023
2 parents b9ad9b7 + c6e6ceb commit a144272
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion compiler/rustc_mir_build/src/build/custom/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
}
}
Expand Down

0 comments on commit a144272

Please sign in to comment.