mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CS] Remove AutoClosureForwarding fix
The fix is currently unused, and the FailureDiagnostic can be inlined into MissingCallFailure.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user