Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit abcdf09

Browse files
committedJan 9, 2024
Reset lint_err_count in DiagCtxt::reset_err_count.
It's missing but should obviously be included.
1 parent c03e7fd commit abcdf09

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
@@ -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)
Please sign in to comment.