Skip to content

Commit a1f816d

Browse files
committed
AST: Remove bogus PackExpansionType logic in lookupConformance()
1 parent 50afb00 commit a1f816d

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lib/AST/Module.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1949,18 +1949,6 @@ LookupConformanceInModuleRequest::evaluate(
19491949
return getBuiltinBuiltinTypeConformance(type, builtinType, protocol);
19501950
}
19511951

1952-
// Specific handling of Copyable and Sendable for pack expansions.
1953-
// FIXME: Remove.
1954-
if (auto packExpansion = type->getAs<PackExpansionType>()) {
1955-
if (protocol->isSpecificProtocol(KnownProtocolKind::Copyable) ||
1956-
protocol->isSpecificProtocol(KnownProtocolKind::Sendable)) {
1957-
auto patternType = packExpansion->getPatternType();
1958-
return (patternType->isTypeParameter()
1959-
? ProtocolConformanceRef(protocol)
1960-
: mod->lookupConformance(patternType, protocol));
1961-
}
1962-
}
1963-
19641952
auto nominal = type->getAnyNominal();
19651953

19661954
// If we don't have a nominal type, there are no conformances.

0 commit comments

Comments
 (0)