Skip to content

Commit b35c306

Browse files
committed
Fix the path resolutions of glob imports.
1 parent 1f965cc commit b35c306

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/librustc_resolve/resolve_imports.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -708,10 +708,7 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
708708
}
709709

710710
// Record the destination of this import
711-
if let Some(did) = module.def_id() {
712-
let resolution = PathResolution::new(Def::Mod(did));
713-
self.def_map.insert(directive.id, resolution);
714-
}
711+
self.def_map.insert(directive.id, PathResolution::new(module.def().unwrap()));
715712
}
716713

717714
// Miscellaneous post-processing, including recording reexports, reporting conflicts,

0 commit comments

Comments
 (0)