diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2014-12-29 14:33:46 +1300 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2014-12-29 18:20:38 +1300 |
| commit | 35dd33c7e24798e8acc030fc5bbf2ca372616bbf (patch) | |
| tree | e591abe7b42a0e2c913ea67cefa4ee80d0de989f /src | |
| parent | 9a58808785499d730aaa0b1c914b34c204d2a487 (diff) | |
| download | rust-35dd33c7e24798e8acc030fc5bbf2ca372616bbf.tar.gz rust-35dd33c7e24798e8acc030fc5bbf2ca372616bbf.zip | |
Fix glob shadowing bug with re-exports
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_resolve/lib.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/librustc_resolve/lib.rs b/src/librustc_resolve/lib.rs index 3f35f99a995..d42725d19ba 100644 --- a/src/librustc_resolve/lib.rs +++ b/src/librustc_resolve/lib.rs @@ -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()); } } |
