mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Count "unused extern" errors as lints rather than normal errors.
This commit is contained in:
parent
f00c088393
commit
807c8687de
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user