mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ConstraintFix] Rather than creating a coalesced fix right before
diagnosing failures in applySolutionFixes, coalesce fixes and diagnose failures in one method on ConstraintFix. This eliminates the need for the `DefaultGenericArgument` fix (which was renamed from `ExplicitlySpecifyGenericArguments`) to have an array of missing parameters, which was only used when the fixes were coalesced. Instead, the coalesced arguments are used to create the `MissingGenericArgumentsFailure` diagnostic directly.
This commit is contained in:
@@ -8390,7 +8390,7 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyFixConstraint(
|
||||
case FixKind::AllowAnyObjectKeyPathRoot:
|
||||
case FixKind::TreatKeyPathSubscriptIndexAsHashable:
|
||||
case FixKind::AllowInvalidRefInKeyPath:
|
||||
case FixKind::ExplicitlySpecifyGenericArguments:
|
||||
case FixKind::DefaultGenericArgument:
|
||||
case FixKind::GenericArgumentsMismatch:
|
||||
case FixKind::AllowMutatingMemberOnRValueBase:
|
||||
case FixKind::AllowTupleSplatForSingleParameter:
|
||||
|
||||
Reference in New Issue
Block a user