mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
Use get_module instead of module_map
for resolve_str_path_error
This commit is contained in:
parent
5c9e5df3a0
commit
5271e98f4e
@ -2998,7 +2998,7 @@ impl<'a> Resolver<'a> {
|
||||
.collect(),
|
||||
}
|
||||
};
|
||||
let module = self.module_map.get(&module_id).copied().unwrap_or(self.graph_root);
|
||||
let module = self.get_module(module_id.to_def_id());
|
||||
let parent_scope = &ParentScope::module(module);
|
||||
let res = self.resolve_ast_path(&path, ns, parent_scope).map_err(|_| ())?;
|
||||
Ok((path, res))
|
||||
|
Loading…
Reference in New Issue
Block a user