Fix impl lookup to properly look in the IR containing a transitively-imported entity. (#4625)

This commit is contained in:
Richard Smith authored and GitHub committed 2024-12-04 21:38:19 +00:00
1 parent 6260f0fecf
commit 80a3dc83bc
6 files changed
+353 -42

No files matched your search

+1 -2
View File
@@ -131,8 +131,7 @@ static auto TryMergeRedecl(Context& context, Parse::AnyFunctionDeclId node_id,
break;
}
case SemIR::ImportRefLoaded::Kind: {
auto import_ir_inst =
GetCanonicalImportIRInst(context, &context.sem_ir(), prev_id);
auto import_ir_inst = GetCanonicalImportIRInst(context, prev_id);
// Verify the decl so that things like aliases are name conflicts.
const auto* import_ir =