Emit unused externs

This commit is contained in:
est31
2020-06-30 18:58:15 +02:00
parent 76c500ec6c
commit aef1e35edc
4 changed files with 34 additions and 0 deletions

View File

@@ -195,6 +195,9 @@ pub trait Emitter {
fn emit_future_breakage_report(&mut self, _diags: Vec<(FutureBreakage, Diagnostic)>) {}
/// Emit list of unused externs
fn emit_unused_externs(&mut self, _unused_externs: &[&str]) {}
/// Checks if should show explanations about "rustc --explain"
fn should_show_explain(&self) -> bool {
true