Fix the path resolutions of glob imports.

This commit is contained in:
Jeffrey Seyfried 2016-12-02 23:10:44 +00:00
parent 1f965cc8e9
commit b35c306b65
1 changed files with 1 additions and 4 deletions

View File

@ -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,