Fix glob shadowing bug with re-exports
This commit is contained in:
parent
9a58808785
commit
35dd33c7e2
1 changed files with 8 additions and 0 deletions
|
|
@ -2866,6 +2866,10 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
|
|||
// Continue.
|
||||
}
|
||||
Some(ref value_target) => {
|
||||
self.check_for_conflicting_import(&dest_import_resolution.value_target,
|
||||
import_directive.span,
|
||||
*ident,
|
||||
ValueNS);
|
||||
dest_import_resolution.value_target = Some(value_target.clone());
|
||||
}
|
||||
}
|
||||
|
|
@ -2874,6 +2878,10 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
|
|||
// Continue.
|
||||
}
|
||||
Some(ref type_target) => {
|
||||
self.check_for_conflicting_import(&dest_import_resolution.type_target,
|
||||
import_directive.span,
|
||||
*ident,
|
||||
TypeNS);
|
||||
dest_import_resolution.type_target = Some(type_target.clone());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue