Sema: Fold Constraint::createFixedChoice() into Constraint::createBindOverload()

This commit is contained in:
Slava Pestov
2024-10-11 11:21:20 -04:00
parent 2eaec5a97f
commit b44bff26b5
3 changed files with 21 additions and 36 deletions

View File

@@ -558,10 +558,10 @@ public:
ValueDecl *requirement, DeclContext *useDC,
FunctionRefKind functionRefKind, ConstraintLocator *locator);
/// Create an overload-binding constraint.
/// Create an overload-binding constraint, possibly with a fix.
static Constraint *createBindOverload(ConstraintSystem &cs, Type type,
OverloadChoice choice,
DeclContext *useDC,
DeclContext *useDC, ConstraintFix *fix,
ConstraintLocator *locator);
/// Create a restricted relational constraint.
@@ -575,13 +575,6 @@ public:
ConstraintFix *fix, Type first, Type second,
ConstraintLocator *locator);
/// Create a bind overload choice with a fix.
/// Note: This constraint is going to be disabled by default.
static Constraint *createFixedChoice(ConstraintSystem &cs, Type type,
OverloadChoice choice,
DeclContext *useDC, ConstraintFix *fix,
ConstraintLocator *locator);
/// Create a new disjunction constraint.
static Constraint *createDisjunction(ConstraintSystem &cs,
ArrayRef<Constraint *> constraints,