File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -3197,6 +3197,16 @@ bool ConstraintSystem::diagnoseAmbiguityWithFixes(
3197
3197
if (diagnoseAmbiguityWithEphemeralPointers (*this , solutions))
3198
3198
return true ;
3199
3199
3200
+
3201
+ // Algorithm is as follows:
3202
+ //
3203
+ // a. Aggregate all of the available fixes based on callee locator;
3204
+ // b. For each ambiguous overload match aggregated fixes and diagnose;
3205
+ // c. Discard all of the fixes which have been already considered
3206
+ // as part of overload diagnostics;
3207
+ // d. Diagnose remaining (uniqued based on kind + locator) fixes
3208
+ // iff they appear in all of the solutions.
3209
+
3200
3210
using Fix = std::pair<const Solution *, const ConstraintFix *>;
3201
3211
3202
3212
llvm::SmallSetVector<Fix, 4 > fixes;
You can’t perform that action at this time.
0 commit comments