about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-02-12 16:34:39 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-02-12 18:39:20 +1100
commit1f39c8b08f2a9d30916a77beaf518f8d58d13a62 (patch)
treebacba6d98a178d3c1b9a44a69dd23d6b1fd0e2b0 /compiler
parentd4b77f64e4085f06caf5bd4ef8ae3c64d681eeff (diff)
downloadrust-1f39c8b08f2a9d30916a77beaf518f8d58d13a62.tar.gz
rust-1f39c8b08f2a9d30916a77beaf518f8d58d13a62.zip
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.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_errors/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index 2a68443ee38..16077b3d98f 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -993,10 +993,10 @@ impl DiagCtxt {
                     .emit_diagnostic(Diagnostic::new(Warning, DiagnosticMessage::Str(warnings)));
             }
             (_, 0) => {
-                inner.emit_diagnostic(Diagnostic::new(Fatal, errors));
+                inner.emit_diagnostic(Diagnostic::new(Error, errors));
             }
             (_, _) => {
-                inner.emit_diagnostic(Diagnostic::new(Fatal, format!("{errors}; {warnings}")));
+                inner.emit_diagnostic(Diagnostic::new(Error, format!("{errors}; {warnings}")));
             }
         }