Skip to content

Commit 5271e98

Browse files
committed
Use get_module instead of module_map for resolve_str_path_error
1 parent 5c9e5df commit 5271e98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_resolve/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2998,7 +2998,7 @@ impl<'a> Resolver<'a> {
29982998
.collect(),
29992999
}
30003000
};
3001-
let module = self.module_map.get(&module_id).copied().unwrap_or(self.graph_root);
3001+
let module = self.get_module(module_id.to_def_id());
30023002
let parent_scope = &ParentScope::module(module);
30033003
let res = self.resolve_ast_path(&path, ns, parent_scope).map_err(|_| ())?;
30043004
Ok((path, res))

0 commit comments

Comments
 (0)