1
Fork 0

Prepare crate loader for LockGuard

This commit is contained in:
Oli Scherer 2022-12-08 10:43:21 +00:00
parent d191de63f0
commit e8e227aec8
4 changed files with 11 additions and 10 deletions

View file

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