mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user