[Requirement] Rename RequirementKind::SameCount to SameShape.

This commit is contained in:
Holly Borla
2022-10-05 14:03:38 -07:00
parent fab5b7d364
commit 38a2c8218b
41 changed files with 128 additions and 128 deletions

View File

@@ -1769,8 +1769,8 @@ void ConstraintSystem::openGenericRequirement(
auto kind = req.getKind();
switch (kind) {
case RequirementKind::SameCount:
llvm_unreachable("Same-count requirement not supported here");
case RequirementKind::SameShape:
llvm_unreachable("Same-shape requirement not supported here");
case RequirementKind::Conformance: {
auto protoDecl = req.getProtocolDecl();
// Determine whether this is the protocol 'Self' constraint we should
@@ -6611,8 +6611,8 @@ static bool doesMemberHaveUnfulfillableConstraintsWithExistentialBase(
for (const auto &req : sig.getRequirements()) {
switch (req.getKind()) {
case RequirementKind::SameCount:
llvm_unreachable("Same-count requirement not supported here");
case RequirementKind::SameShape:
llvm_unreachable("Same-shape requirement not supported here");
case RequirementKind::Superclass: {
if (req.getFirstType()->getRootGenericParam()->getDepth() > 0 &&