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

This commit is contained in:
Richard Smith
2024-12-04 21:38:19 +00:00
committed by GitHub
parent 6260f0fecf
commit 80a3dc83bc
6 changed files with 353 additions and 42 deletions
+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 =