Silence confusing 'unused import' warnings.
This commit is contained in:
parent
ce95a57a72
commit
d834d2a742
3 changed files with 21 additions and 39 deletions
|
@ -986,6 +986,9 @@ impl<'a> Resolver<'a> {
|
|||
import.span,
|
||||
&format!("`{}` is imported here, but {}", ident, it_is),
|
||||
);
|
||||
// Silence the 'unused import' warning we might get,
|
||||
// since this diagnostic already covers that import.
|
||||
self.record_use(ident, binding, false);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue