Skip to content

Commit 6e5bba0

Browse files
committed
Count "unused extern" errors as lints rather than normal errors.
1 parent 63a9e80 commit 6e5bba0

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

compiler/rustc_errors/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ impl DiagCtxt {
11651165
let mut inner = self.inner.borrow_mut();
11661166

11671167
if loud && lint_level.is_error() {
1168-
inner.err_count += 1;
1168+
inner.lint_err_count += 1;
11691169
inner.panic_if_treat_err_as_bug();
11701170
}
11711171

0 commit comments

Comments
 (0)