Skip to content

Commit 7e60404

Browse files
authored
Merge pull request #70861 from kavon/cleanup-collectExistentialConformances
[NFC] clean-up collectExistentialConformances
2 parents 04ca86b + 30a4740 commit 7e60404

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

include/swift/AST/Module.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,8 +853,10 @@ class ModuleDecl
853853
ProtocolConformanceRef conformsToProtocol(Type sourceTy,
854854
ProtocolDecl *targetProtocol);
855855

856-
/// Collect the conformances of \c fromType each of the protocols of an
856+
/// Collect the conformances of \c fromType to each of the protocols of an
857857
/// existential type's layout.
858+
///
859+
/// See `TypeChecker::containsProtocol` for details on the boolean arguments.
858860
ArrayRef<ProtocolConformanceRef>
859861
collectExistentialConformances(CanType fromType, CanType existential,
860862
bool skipConditionalRequirements = true,

include/swift/AST/TypeCheckRequests.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,6 @@ class CollectExistentialConformancesRequest
345345
CanType existential,
346346
bool skipConditionalRequirements,
347347
bool allowMissing) const;
348-
349-
public:
350-
// Caching.
351-
bool isCached() const { return true; }
352348
};
353349

354350
/// Determine whether an existential type conforming to this protocol

0 commit comments

Comments
 (0)