Prepare crate loader for LockGuard
This commit is contained in:
parent
d191de63f0
commit
e8e227aec8
4 changed files with 11 additions and 10 deletions
|
@ -1315,7 +1315,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
|
|||
// otherwise cause duplicate suggestions.
|
||||
continue;
|
||||
}
|
||||
let crate_id = self.crate_loader().maybe_process_path_extern(ident.name);
|
||||
let crate_id = self.crate_loader(|c| c.maybe_process_path_extern(ident.name));
|
||||
if let Some(crate_id) = crate_id {
|
||||
let crate_root = self.expect_module(crate_id.as_def_id());
|
||||
suggestions.extend(self.lookup_import_candidates_from_module(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue