Make --json unused-extern deny/forbid level messages cause exit with error status
Closes: https://github.com/rust-lang/rust/issues/96068
This commit is contained in:
parent
2373599b82
commit
39f2f18463
4 changed files with 10 additions and 4 deletions
|
@ -970,7 +970,13 @@ impl Handler {
|
|||
}
|
||||
|
||||
pub fn emit_unused_externs(&self, lint_level: &str, unused_externs: &[&str]) {
|
||||
self.inner.borrow_mut().emit_unused_externs(lint_level, unused_externs)
|
||||
let mut inner = self.inner.borrow_mut();
|
||||
|
||||
if lint_level == "deny" || lint_level == "forbid" {
|
||||
inner.bump_err_count();
|
||||
}
|
||||
|
||||
inner.emit_unused_externs(lint_level, unused_externs)
|
||||
}
|
||||
|
||||
pub fn update_unstable_expectation_id(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue