Skip to content

Commit 12ba450

Browse files
committed
Reset lint_err_count in DiagCtxt::reset_err_count.
It's missing but should obviously be included.
1 parent 0e388f2 commit 12ba450

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_errors/src

1 file changed

+1
-0
lines changed

compiler/rustc_errors/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,7 @@ impl DiagCtxt {
647647
/// the overall count of emitted error diagnostics.
648648
pub fn reset_err_count(&self) {
649649
let mut inner = self.inner.borrow_mut();
650+
inner.lint_err_count = 0;
650651
inner.err_count = 0;
651652
inner.warn_count = 0;
652653
inner.deduplicated_err_count = 0;

0 commit comments

Comments
 (0)