remove unused Level::PhaseFatal
This commit is contained in:
parent
c43d03a19f
commit
ed7317cebe
@ -148,7 +148,7 @@ fn source_string(
|
||||
/// Maps `Diagnostic::Level` to `snippet::AnnotationType`
|
||||
fn annotation_type_for_level(level: Level) -> AnnotationType {
|
||||
match level {
|
||||
Level::Bug | Level::Fatal | Level::PhaseFatal | Level::Error => AnnotationType::Error,
|
||||
Level::Bug | Level::Fatal | Level::Error => AnnotationType::Error,
|
||||
Level::Warning => AnnotationType::Warning,
|
||||
Level::Note => AnnotationType::Note,
|
||||
Level::Help => AnnotationType::Help,
|
||||
|
@ -94,7 +94,6 @@ pub fn is_error(&self) -> bool {
|
||||
match self.level {
|
||||
Level::Bug |
|
||||
Level::Fatal |
|
||||
Level::PhaseFatal |
|
||||
Level::Error |
|
||||
Level::FailureNote => {
|
||||
true
|
||||
|
@ -787,9 +787,6 @@ pub fn emit_artifact_notification(&self, path: &Path, artifact_type: &str) {
|
||||
pub enum Level {
|
||||
Bug,
|
||||
Fatal,
|
||||
// An error which while not immediately fatal, should stop the compiler
|
||||
// progressing beyond the current phase.
|
||||
PhaseFatal,
|
||||
Error,
|
||||
Warning,
|
||||
Note,
|
||||
@ -808,7 +805,7 @@ impl Level {
|
||||
fn color(self) -> ColorSpec {
|
||||
let mut spec = ColorSpec::new();
|
||||
match self {
|
||||
Bug | Fatal | PhaseFatal | Error => {
|
||||
Bug | Fatal | Error => {
|
||||
spec.set_fg(Some(Color::Red))
|
||||
.set_intense(true);
|
||||
}
|
||||
@ -833,7 +830,7 @@ fn color(self) -> ColorSpec {
|
||||
pub fn to_str(self) -> &'static str {
|
||||
match self {
|
||||
Bug => "error: internal compiler error",
|
||||
Fatal | PhaseFatal | Error => "error",
|
||||
Fatal | Error => "error",
|
||||
Warning => "warning",
|
||||
Note => "note",
|
||||
Help => "help",
|
||||
|
Loading…
Reference in New Issue
Block a user