mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Requirement] Rename RequirementKind::SameCount to SameShape.
This commit is contained in:
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user