Start pulling in names from cross-package imports. (#3789)

Note, I'm annotating the lookup partly so that the reason the conflict
comes up is clear, partly so that there's actually a diagnostic line
associated with the root cause as more tests get packed into a single
file.
This commit is contained in:
Jon Ross-Perkins
2024-03-16 01:37:34 +00:00
committed by GitHub
parent 8cb932b99c
commit 957f11587d
8 changed files with 506 additions and 37 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ static auto BuildInterfaceWitness(
if (auto fn_decl = decl.TryAs<SemIR::FunctionDecl>()) {
auto& fn = context.functions().Get(fn_decl->function_id);
auto impl_decl_id =
context.LookupNameInExactScope(fn.name_id, impl_scope);
context.LookupNameInExactScope(decl_id, fn.name_id, impl_scope);
if (impl_decl_id.is_valid()) {
used_decl_ids.push_back(impl_decl_id);
table.push_back(CheckAssociatedFunctionImplementation(