Emit the lint level of the unused-crate-dependencies
Also, turn off the lint when the unused dependencies json flag is specified so that cargo doesn't have to supress the lint
This commit is contained in:
parent
13371b59ee
commit
3a62eb74db
6 changed files with 66 additions and 19 deletions
|
@ -767,8 +767,8 @@ 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 emit_unused_externs(&self, lint_level: &str, unused_externs: &[&str]) {
|
||||
self.inner.borrow_mut().emit_unused_externs(lint_level, unused_externs)
|
||||
}
|
||||
|
||||
pub fn delay_as_bug(&self, diagnostic: Diagnostic) {
|
||||
|
@ -845,8 +845,8 @@ 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 emit_unused_externs(&mut self, lint_level: &str, unused_externs: &[&str]) {
|
||||
self.emitter.emit_unused_externs(lint_level, unused_externs);
|
||||
}
|
||||
|
||||
fn treat_err_as_bug(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue