Count "unused extern" errors as lints rather than normal errors.

This commit is contained in:
Nicholas Nethercote 2024-01-15 14:41:12 +11:00
parent f00c088393
commit 807c8687de

View File

@ -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();
}