Skip to content

Commit

Permalink
Count "unused extern" errors as lints rather than normal errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Jan 21, 2024
1 parent f00c088 commit 807c868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_errors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,7 @@ impl DiagCtxt {
let mut inner = self.inner.borrow_mut();

if loud && lint_level.is_error() {
inner.err_count += 1;
inner.lint_err_count += 1;
inner.panic_if_treat_err_as_bug();
}

Expand Down

0 comments on commit 807c868

Please sign in to comment.