Make Diagnostic::is_error return false for Level::FailureNote.
It doesn't affect behaviour, but makes sense with (a) `FailureNote` having `()` as its emission guarantee, and (b) in `Level` the `is_error` levels now are all listed before the non-`is_error` levels.
This commit is contained in:
@@ -238,8 +238,7 @@ impl Diagnostic {
|
||||
Level::Bug
|
||||
| Level::DelayedBug(DelayedBugKind::Normal)
|
||||
| Level::Fatal
|
||||
| Level::Error
|
||||
| Level::FailureNote => true,
|
||||
| Level::Error => true,
|
||||
|
||||
Level::ForceWarning(_)
|
||||
| Level::Warning
|
||||
@@ -248,6 +247,7 @@ impl Diagnostic {
|
||||
| Level::OnceNote
|
||||
| Level::Help
|
||||
| Level::OnceHelp
|
||||
| Level::FailureNote
|
||||
| Level::Allow
|
||||
| Level::Expect(_) => false,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user