Skip to content

Commit 35dd33c

Browse files
committed
Fix glob shadowing bug with re-exports
1 parent 9a58808 commit 35dd33c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/librustc_resolve/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2866,6 +2866,10 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
28662866
// Continue.
28672867
}
28682868
Some(ref value_target) => {
2869+
self.check_for_conflicting_import(&dest_import_resolution.value_target,
2870+
import_directive.span,
2871+
*ident,
2872+
ValueNS);
28692873
dest_import_resolution.value_target = Some(value_target.clone());
28702874
}
28712875
}
@@ -2874,6 +2878,10 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
28742878
// Continue.
28752879
}
28762880
Some(ref type_target) => {
2881+
self.check_for_conflicting_import(&dest_import_resolution.type_target,
2882+
import_directive.span,
2883+
*ident,
2884+
TypeNS);
28772885
dest_import_resolution.type_target = Some(type_target.clone());
28782886
}
28792887
}

0 commit comments

Comments
 (0)