diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-09 14:39:46 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-11 07:56:20 +1100 |
| commit | 12ba450d148d10f3b80f216a1309a8a4e3ef4403 (patch) | |
| tree | df39482b37d3b06ddc421ed9876f612ec1be9961 /compiler/rustc_errors/src | |
| parent | 0e388f21928219472d34a121cc33fcc4cf3e2c77 (diff) | |
| download | rust-12ba450d148d10f3b80f216a1309a8a4e3ef4403.tar.gz rust-12ba450d148d10f3b80f216a1309a8a4e3ef4403.zip | |
Reset `lint_err_count` in `DiagCtxt::reset_err_count`.
It's missing but should obviously be included.
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index f64a5d65fcf..de83bc791ee 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -647,6 +647,7 @@ impl DiagCtxt { /// the overall count of emitted error diagnostics. pub fn reset_err_count(&self) { let mut inner = self.inner.borrow_mut(); + inner.lint_err_count = 0; inner.err_count = 0; inner.warn_count = 0; inner.deduplicated_err_count = 0; |
