Skip to content

Commit

Permalink
make custom mir ICE a bit nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Jun 25, 2023
1 parent 0d03812 commit 6752a7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 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,7 @@ fn parse_attribute(attr: &Attribute) -> MirPhase {
phase = Some(value);
}
other => {
panic!("Unexpected key {}", other);
bug!("Unexpected key while parsing custom_mir attribute: '{}'", other);
}
}
}
Expand Down

0 comments on commit 6752a7d

Please sign in to comment.