Emit unused externs
This commit is contained in:
parent
76c500ec6c
commit
aef1e35edc
4 changed files with 34 additions and 0 deletions
|
@ -767,6 +767,10 @@ impl Handler {
|
|||
self.inner.borrow_mut().emitter.emit_future_breakage_report(diags)
|
||||
}
|
||||
|
||||
pub fn emit_unused_externs(&self, unused_externs: &[&str]) {
|
||||
self.inner.borrow_mut().emit_unused_externs(unused_externs)
|
||||
}
|
||||
|
||||
pub fn delay_as_bug(&self, diagnostic: Diagnostic) {
|
||||
self.inner.borrow_mut().delay_as_bug(diagnostic)
|
||||
}
|
||||
|
@ -841,6 +845,10 @@ impl HandlerInner {
|
|||
self.emitter.emit_artifact_notification(path, artifact_type);
|
||||
}
|
||||
|
||||
fn emit_unused_externs(&mut self, unused_externs: &[&str]) {
|
||||
self.emitter.emit_unused_externs(unused_externs);
|
||||
}
|
||||
|
||||
fn treat_err_as_bug(&self) -> bool {
|
||||
self.flags.treat_err_as_bug.map_or(false, |c| self.err_count() >= c.get())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue