Skip to content

Commit cd72bbc

Browse files
committed
Reset lint_err_count in DiagCtxt::reset_err_count.
It's missing but should obviously be included.
1 parent 08e46fa commit cd72bbc

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,7 @@ impl DiagCtxt {
650650
/// the overall count of emitted error diagnostics.
651651
pub fn reset_err_count(&self) {
652652
let mut inner = self.inner.borrow_mut();
653+
inner.lint_err_count = 0;
653654
inner.err_count = 0;
654655
inner.warn_count = 0;
655656
inner.deduplicated_err_count = 0;

0 commit comments

Comments
 (0)