mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CS] NFC: Factor out AllowAssociatedValueMismatch
This seems better suited as its own fix, rather than as part of ContextualMismatch.
This commit is contained in:
@@ -6380,8 +6380,7 @@ bool ConstraintSystem::repairFailures(
|
||||
if (isMemberMatch) {
|
||||
recordAnyTypeVarAsPotentialHole(lhs);
|
||||
recordAnyTypeVarAsPotentialHole(rhs);
|
||||
|
||||
conversionsOrFixes.push_back(ContextualMismatch::create(
|
||||
conversionsOrFixes.push_back(AllowAssociatedValueMismatch::create(
|
||||
*this, lhs, rhs, getConstraintLocator(locator)));
|
||||
}
|
||||
|
||||
@@ -14572,6 +14571,7 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyFixConstraint(
|
||||
case FixKind::AllowInvalidPackExpansion:
|
||||
case FixKind::MacroMissingPound:
|
||||
case FixKind::AllowGlobalActorMismatch:
|
||||
case FixKind::AllowAssociatedValueMismatch:
|
||||
case FixKind::GenericArgumentsMismatch: {
|
||||
return recordFix(fix) ? SolutionKind::Error : SolutionKind::Solved;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user