Skip to content

Commit e70c631

Browse files
committed
add ICE error level
1 parent e7507d6 commit e70c631

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ui_test/src/rustc_stderr.rs

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ struct RustcMessage {
1616

1717
#[derive(Copy, Clone, Debug, PartialOrd, Ord, PartialEq, Eq)]
1818
pub(crate) enum Level {
19+
Ice = 5,
1920
Error = 4,
2021
Warn = 3,
2122
Help = 2,
@@ -52,6 +53,7 @@ impl std::str::FromStr for Level {
5253
"HELP" | "help" => Ok(Self::Help),
5354
"NOTE" | "note" => Ok(Self::Note),
5455
"failure-note" => Ok(Self::FailureNote),
56+
"error: internal compiler error" => Ok(Self::Ice),
5557
_ => Err(format!("unknown level `{s}`")),
5658
}
5759
}

0 commit comments

Comments
 (0)