diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-12-02 23:10:44 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-12-18 23:23:23 +0000 |
| commit | b35c306b657c25f676c3981e2c78ea73f44ef378 (patch) | |
| tree | 5f51427956635751ecd10509080c046c6091a07d | |
| parent | 1f965cc8e9dc8f8b26eac99cffdef6501cf0c617 (diff) | |
Fix the path resolutions of glob imports.
| -rw-r--r-- | src/librustc_resolve/resolve_imports.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/librustc_resolve/resolve_imports.rs b/src/librustc_resolve/resolve_imports.rs index 890891fd090..64a8e21f9e0 100644 --- a/src/librustc_resolve/resolve_imports.rs +++ b/src/librustc_resolve/resolve_imports.rs @@ -708,10 +708,7 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> { } // Record the destination of this import - if let Some(did) = module.def_id() { - let resolution = PathResolution::new(Def::Mod(did)); - self.def_map.insert(directive.id, resolution); - } + self.def_map.insert(directive.id, PathResolution::new(module.def().unwrap())); } // Miscellaneous post-processing, including recording reexports, reporting conflicts, |
