mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove Value requirement Add GenericTypeParamKind
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user