Skip to content

Commit 6752a7d

Browse files
committed
make custom mir ICE a bit nicer
1 parent 0d03812 commit 6752a7d

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_mir_build/src/build/custom

1 file changed

+1
-1
lines changed

compiler/rustc_mir_build/src/build/custom/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ fn parse_attribute(attr: &Attribute) -> MirPhase {
118118
phase = Some(value);
119119
}
120120
other => {
121-
panic!("Unexpected key {}", other);
121+
bug!("Unexpected key while parsing custom_mir attribute: '{}'", other);
122122
}
123123
}
124124
}

0 commit comments

Comments
 (0)