1
Fork 0

Generate crate loaders on the fly

This commit is contained in:
Oli Scherer 2022-12-07 13:37:47 +00:00
parent 4b08fbaea8
commit 2cd36f2c89
7 changed files with 67 additions and 54 deletions

View file

@ -1298,7 +1298,7 @@ impl<'a> Resolver<'a> {
// otherwise cause duplicate suggestions.
continue;
}
if let Some(crate_id) = self.crate_loader.maybe_process_path_extern(ident.name) {
if let Some(crate_id) = self.crate_loader().maybe_process_path_extern(ident.name) {
let crate_root = self.expect_module(crate_id.as_def_id());
suggestions.extend(self.lookup_import_candidates_from_module(
lookup_ident,