Skip to content

Commit d5f2af2

Browse files
committed
[NFC] ConformanceChecker: Make 'ensureRequirementsAreSatisfied()' private
1 parent 940f044 commit d5f2af2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/Sema/TypeCheckProtocol.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,10 @@ class ConformanceChecker : public WitnessChecker {
788788
ResolveWitnessResult resolveTypeWitnessViaLookup(
789789
AssociatedTypeDecl *assocType);
790790

791+
/// Check whether all of the protocol's generic requirements are satisfied by
792+
/// the chosen type witnesses.
793+
void ensureRequirementsAreSatisfied();
794+
791795
/// Diagnose or defer a diagnostic, as appropriate.
792796
///
793797
/// \param requirement The requirement with which this diagnostic is
@@ -846,10 +850,6 @@ class ConformanceChecker : public WitnessChecker {
846850
/// directly as possible.
847851
void resolveSingleTypeWitness(AssociatedTypeDecl *assocType);
848852

849-
/// Check all of the protocols requirements are actually satisfied by a
850-
/// the chosen type witnesses.
851-
void ensureRequirementsAreSatisfied();
852-
853853
/// Check the entire protocol conformance, ensuring that all
854854
/// witnesses are resolved and emitting any diagnostics.
855855
void checkConformance(MissingWitnessDiagnosisKind Kind);

0 commit comments

Comments
 (0)