@@ -445,19 +445,16 @@ class GenericSignatureBuilder {
445
445
// / Note that we have added the nested type nestedPA
446
446
void addedNestedType (PotentialArchetype *nestedPA);
447
447
448
- // / Add a rewrite rule that makes \c otherPA a part of the given equivalence
449
- // / class.
448
+ // / Add a rewrite rule from that makes the two types equivalent.
450
449
// /
451
450
// / \returns true if a new rewrite rule was added, and false otherwise.
452
- bool addSameTypeRewriteRule (EquivalenceClass *equivClass,
453
- PotentialArchetype *otherPA);
451
+ bool addSameTypeRewriteRule (CanType type1, CanType type2);
454
452
455
- // / \brief Add a new conformance requirement specifying that the given
456
- // / potential archetypes are equivalent.
457
- ConstraintResult addSameTypeRequirementBetweenArchetypes (
458
- PotentialArchetype *T1,
459
- PotentialArchetype *T2,
460
- const RequirementSource *Source);
453
+ // / \brief Add a same-type requirement between two types that are known to
454
+ // / refer to type parameters.
455
+ ConstraintResult addSameTypeRequirementBetweenTypeParameters (
456
+ ResolvedType type1, ResolvedType type2,
457
+ const RequirementSource *source);
461
458
462
459
// / \brief Add a new conformance requirement specifying that the given
463
460
// / potential archetype is bound to a concrete type.
@@ -811,9 +808,6 @@ class GenericSignatureBuilder {
811
808
bool areInSameEquivalenceClass (Type type1, Type type2);
812
809
813
810
// / Simplify the given dependent type down to its canonical representation.
814
- // /
815
- // / \returns null if the type involved dependent member types that
816
- // / don't have associated types.
817
811
Type getCanonicalTypeParameter (Type type);
818
812
819
813
// / For each requirement in \c sig, create a new signature without it and see
0 commit comments