[CS] Remove AutoClosureForwarding fix

The fix is currently unused, and the
FailureDiagnostic can be inlined into
MissingCallFailure.
This commit is contained in:
Hamish Knight
2024-12-29 12:25:19 +00:00
parent 86e8165569
commit 2fd6863b1d
5 changed files with 4 additions and 72 deletions

View File

@@ -15254,12 +15254,6 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyFixConstraint(
return result;
}
case FixKind::AutoClosureForwarding: {
if (recordFix(fix))
return SolutionKind::Error;
return matchTypes(type1, type2, matchKind, subflags, locator);
}
case FixKind::AllowTupleTypeMismatch: {
if (fix->getAs<AllowTupleTypeMismatch>()->isElementMismatch()) {
auto *locator = fix->getLocator();