mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-03 10:15:49 +01:00
Allow witnesses to come from a facet with partially identified type in the lookup target (#7260)
We allow impl lookup to use `Self` which is partially identified, but we were only allowing this for the `Self` facet appearing in the impl lookup query self. We should also allow it when `Self` appears in the impl lookup query target facet type. But demonstrate that `Self` appearing in the interface of an ImplWitnessAccess (a compound member access) is not sufficient at this time, as it does not put `Self` into the type structure.
This commit is contained in:
@@ -432,7 +432,7 @@ static auto CollectFacetWitnessSources(
|
||||
{
|
||||
SemIR::TypeIterator iter(&context.sem_ir());
|
||||
iter.Add(context.insts().GetAs<SemIR::FacetType>(query_facet_type_inst_id));
|
||||
collect_facets(iter, /*allow_partially_identified=*/false);
|
||||
collect_facets(iter, /*allow_partially_identified=*/true);
|
||||
}
|
||||
|
||||
if (!context.where_stack().empty()) {
|
||||
|
||||
Reference in New Issue
Block a user