AST: Remove MakeAbstractConformanceForGenericType

While the intent behind this functor was noble, it has grown in complexity
considerably over the years, and it seems to be nothing but a source of
crashes in practice. I don't want to deal with it anymore, so I've decided
to just subsume all usages with LookUpConformanceInModule instead.
This commit is contained in:
Slava Pestov
2025-07-15 15:45:26 -04:00
parent a4ad806319
commit ee440f3c91
18 changed files with 27 additions and 86 deletions

View File

@@ -118,13 +118,13 @@ ProtocolConformanceRef ProtocolConformanceRef::mapConformanceOutOfContext() cons
if (isConcrete()) {
return getConcrete()->subst(
MapTypeOutOfContext(),
MakeAbstractConformanceForGenericType(),
LookUpConformanceInModule(),
SubstFlags::PreservePackExpansionLevel |
SubstFlags::SubstitutePrimaryArchetypes);
} else if (isPack()) {
return getPack()->subst(
MapTypeOutOfContext(),
MakeAbstractConformanceForGenericType(),
LookUpConformanceInModule(),
SubstFlags::PreservePackExpansionLevel |
SubstFlags::SubstitutePrimaryArchetypes);
} else if (isAbstract()) {