Skip to content

Commit 1f39c8b

Browse files
committed
Change level used in print_error_count.
From `Fatal` to `Error`. It has no functional effect, but `Error` makes more sense and lines up better with the `Warning` level used just above.
1 parent d4b77f6 commit 1f39c8b

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_errors/src

1 file changed

+2
-2
lines changed

compiler/rustc_errors/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -993,10 +993,10 @@ impl DiagCtxt {
993993
.emit_diagnostic(Diagnostic::new(Warning, DiagnosticMessage::Str(warnings)));
994994
}
995995
(_, 0) => {
996-
inner.emit_diagnostic(Diagnostic::new(Fatal, errors));
996+
inner.emit_diagnostic(Diagnostic::new(Error, errors));
997997
}
998998
(_, _) => {
999-
inner.emit_diagnostic(Diagnostic::new(Fatal, format!("{errors}; {warnings}")));
999+
inner.emit_diagnostic(Diagnostic::new(Error, format!("{errors}; {warnings}")));
10001000
}
10011001
}
10021002

0 commit comments

Comments
 (0)