Remove Value requirement Add GenericTypeParamKind

This commit is contained in:
Alejandro Alonso
2024-08-03 22:08:11 -07:00
parent 0df42e9841
commit f4f60f4344
100 changed files with 834 additions and 1073 deletions

View File

@@ -4653,9 +4653,6 @@ static ConstraintFix *fixRequirementFailure(ConstraintSystem &cs, Type type1,
case RequirementKind::Layout:
case RequirementKind::Conformance:
return MissingConformance::forRequirement(cs, type1, type2, reqLoc);
case RequirementKind::Value:
return SkipSameTypeRequirement::create(cs, type1, type2, reqLoc);
}
llvm_unreachable("covered switch");
}
@@ -15922,11 +15919,6 @@ void ConstraintSystem::addConstraint(Requirement req,
llvm_unreachable("unexpected LayoutConstraint kind");
}
return;
case RequirementKind::Value:
// FIXME: Should we be adding a constraint here? Is there some new constraint
// to add?
break;
}
auto firstType = req.getFirstType();