diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-12 16:34:39 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-12 18:39:20 +1100 |
| commit | 1f39c8b08f2a9d30916a77beaf518f8d58d13a62 (patch) | |
| tree | bacba6d98a178d3c1b9a44a69dd23d6b1fd0e2b0 /compiler | |
| parent | d4b77f64e4085f06caf5bd4ef8ae3c64d681eeff (diff) | |
| download | rust-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.rs | 4 |
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}"))); } } |
