From e70c631a3b15ad5e72c43c09187c6a02e3b92888 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 16 Jun 2022 11:02:54 -0700 Subject: [PATCH] add ICE error level --- ui_test/src/rustc_stderr.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui_test/src/rustc_stderr.rs b/ui_test/src/rustc_stderr.rs index ac76a78a3cb..203014c50d5 100644 --- a/ui_test/src/rustc_stderr.rs +++ b/ui_test/src/rustc_stderr.rs @@ -16,6 +16,7 @@ struct RustcMessage { #[derive(Copy, Clone, Debug, PartialOrd, Ord, PartialEq, Eq)] pub(crate) enum Level { + Ice = 5, Error = 4, Warn = 3, Help = 2, @@ -52,6 +53,7 @@ impl std::str::FromStr for Level { "HELP" | "help" => Ok(Self::Help), "NOTE" | "note" => Ok(Self::Note), "failure-note" => Ok(Self::FailureNote), + "error: internal compiler error" => Ok(Self::Ice), _ => Err(format!("unknown level `{s}`")), } }