Fix redundant import errors for preload extern crate
This commit is contained in:
parent
62415e2a95
commit
5a4ff2779e
10 changed files with 230 additions and 72 deletions
|
@ -1336,9 +1336,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
|
|||
}
|
||||
|
||||
let mut is_redundant = true;
|
||||
|
||||
let mut redundant_span = PerNS { value_ns: None, type_ns: None, macro_ns: None };
|
||||
|
||||
self.per_ns(|this, ns| {
|
||||
if is_redundant && let Ok(binding) = source_bindings[ns].get() {
|
||||
if binding.res() == Res::Err {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue