Skip to content

Commit 807c868

Browse files
committed
Count "unused extern" errors as lints rather than normal errors.
1 parent f00c088 commit 807c868

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
@@ -1162,7 +1162,7 @@ impl DiagCtxt {
11621162
let mut inner = self.inner.borrow_mut();
11631163

11641164
if loud && lint_level.is_error() {
1165-
inner.err_count += 1;
1165+
inner.lint_err_count += 1;
11661166
inner.panic_if_treat_err_as_bug();
11671167
}
11681168

0 commit comments

Comments
 (0)