Skip to content

Commit 094b0f8

Browse files
committed
[GSB] Rename checkRedundantConcreteTypeConstraints() to checkConcreteTypeConstraints()
1 parent 4686801 commit 094b0f8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/swift/AST/GenericSignatureBuilder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,9 +456,9 @@ class GenericSignatureBuilder {
456456
Diag<Type, T> redundancyDiag,
457457
Diag<bool, Type, T> otherNoteDiag);
458458

459-
/// Check for redundant concrete type constraints within the equivalence
459+
/// Check the concrete type constraints within the equivalence
460460
/// class of the given potential archetype.
461-
void checkRedundantConcreteTypeConstraints(
461+
void checkConcreteTypeConstraints(
462462
ArrayRef<GenericTypeParamType *> genericParams,
463463
PotentialArchetype *pa);
464464

lib/AST/GenericSignatureBuilder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3029,7 +3029,7 @@ GenericSignatureBuilder::finalize(SourceLoc loc,
30293029

30303030
archetype->RecursiveConcreteType = true;
30313031
} else {
3032-
checkRedundantConcreteTypeConstraints(genericParams, archetype);
3032+
checkConcreteTypeConstraints(genericParams, archetype);
30333033
}
30343034
}
30353035

@@ -3349,7 +3349,7 @@ void GenericSignatureBuilder::checkSameTypeConstraints(
33493349
// FIXME: Diagnose redundant same-type constraints.
33503350
}
33513351

3352-
void GenericSignatureBuilder::checkRedundantConcreteTypeConstraints(
3352+
void GenericSignatureBuilder::checkConcreteTypeConstraints(
33533353
ArrayRef<GenericTypeParamType *> genericParams,
33543354
PotentialArchetype *representative) {
33553355
auto equivClass = representative->getOrCreateEquivalenceClass();

0 commit comments

Comments
 (0)