Skip to content

Commit dd1b8b3

Browse files
committed
[CSBindings] Fix merge conflicts with main
1 parent 1de0764 commit dd1b8b3

File tree

2 files changed

+1
-30
lines changed

2 files changed

+1
-30
lines changed

include/swift/Sema/CSBindings.h

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,6 @@ class BindingSet {
417417
!Defaults.empty();
418418
}
419419

420-
LiteralBindingKind getLiteralKind() const;
421-
422420
ArrayRef<Constraint *> getConformanceRequirements() const {
423421
return Info.Protocols;
424422
}
@@ -459,33 +457,10 @@ class BindingSet {
459457

460458
LiteralBindingKind getLiteralKind() const;
461459

462-
void addDefault(Constraint *constraint);
463-
464-
void addLiteral(Constraint *constraint);
465-
466-
/// Add a potential binding to the list of bindings,
467-
/// coalescing supertype bounds when we are able to compute the meet.
468-
void addPotentialBinding(PotentialBinding binding, bool allowJoinMeet = true);
469-
470-
/// Check if this binding is viable for inclusion in the set.
471-
bool isViable(PotentialBinding &binding) const;
472-
473-
bool isGenericParameter() const;
474-
475-
bool isSubtypeOf(TypeVariableType *typeVar) const {
476-
auto result = SubtypeOf.find(typeVar);
477-
if (result == SubtypeOf.end())
478-
return false;
479-
480-
auto *constraint = result->second;
481-
return constraint->getKind() == ConstraintKind::Subtype;
482-
}
483-
484460
/// Check if this binding is favored over a disjunction e.g.
485461
/// if it has only concrete types or would resolve a closure.
486462
bool favoredOverDisjunction(Constraint *disjunction) const;
487463

488-
private:
489464
/// Detect `subtype` relationship between two type variables and
490465
/// attempt to infer supertype bindings transitively e.g.
491466
///
@@ -510,10 +485,6 @@ class BindingSet {
510485
void finalize(
511486
llvm::SmallDenseMap<TypeVariableType *, BindingSet> &inferredBindings);
512487

513-
/// Check if this binding is favored over a disjunction e.g.
514-
/// if it has only concrete types or would resolve a closure.
515-
bool favoredOverDisjunction(Constraint *disjunction) const;
516-
517488
static BindingScore formBindingScore(const BindingSet &b);
518489

519490
/// Compare two sets of bindings, where \c x < y indicates that

lib/Sema/CSBindings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ void BindingSet::determineLiteralCoverage() {
579579
}
580580

581581
std::tie(isCovered, adjustedTy) =
582-
literalInfo.isCoveredBy(*binding, CS.DC, allowsNil);
582+
literalInfo.isCoveredBy(*binding, allowsNil, CS.DC);
583583

584584
if (isCovered) {
585585
literalInfo.setCoveredBy(binding->getSource());

0 commit comments

Comments
 (0)