mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 09:24:46 +01:00
Look in libraries associated with the interface (#4510)
This was broken by #4499 . --------- Co-authored-by: Josh L <josh11b@users.noreply.github.com>
This commit is contained in:
@@ -66,6 +66,14 @@ static auto FindAssociatedImportIRs(Context& context,
|
||||
add_entity(context.interfaces().Get(SemIR::InterfaceId(arg)));
|
||||
break;
|
||||
}
|
||||
case SemIR::IdKind::For<SemIR::FacetTypeId>: {
|
||||
const auto& facet_type_info =
|
||||
context.sem_ir().facet_types().Get(SemIR::FacetTypeId(arg));
|
||||
for (const auto& impl : facet_type_info.impls_constraints) {
|
||||
add_entity(context.interfaces().Get(impl.interface_id));
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SemIR::IdKind::For<SemIR::FunctionId>: {
|
||||
add_entity(context.functions().Get(SemIR::FunctionId(arg)));
|
||||
break;
|
||||
|
||||
+1050
-123
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user