1
Fork 0

remove unused Level::PhaseFatal

This commit is contained in:
Aleksey Kladov 2019-08-14 22:22:46 +03:00
parent c43d03a19f
commit ed7317cebe
3 changed files with 3 additions and 7 deletions

View file

@ -148,7 +148,7 @@ impl<'a> DiagnosticConverter<'a> {
/// 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,