Skip to content

Commit e4e2cdd

Browse files
authored
Merge pull request #39074 from LucianoPAlmeida/minor-fixes
[NFC] Remove old comment related to port diagnostics to new framework
2 parents cc8f0bb + 78ffd65 commit e4e2cdd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2435,7 +2435,7 @@ ConstraintSystem::matchFunctionTypes(FunctionType *func1, FunctionType *func2,
24352435
getFixedTypeRecursive(func1Param.getPlainType(), /*wantRValue=*/true);
24362436
auto varargsType = func2Param.getPlainType();
24372437

2438-
// Delay solving this constriant until argument is resolved.
2438+
// Delay solving this constraint until argument is resolved.
24392439
if (argType->is<TypeVariableType>()) {
24402440
addUnsolvedConstraint(Constraint::create(
24412441
*this, kind, func1, func2, getConstraintLocator(locator)));
@@ -2689,8 +2689,6 @@ ConstraintSystem::matchDeepEqualityTypes(Type type1, Type type2,
26892689
// Optionals have a lot of special diagnostics and only one
26902690
// generic argument so if we' re dealing with one, don't produce generic
26912691
// arguments mismatch fixes.
2692-
// TODO(diagnostics): Move Optional diagnostics over to the
2693-
// new framework.
26942692
if (bound1->getDecl()->isOptionalDecl())
26952693
return matchDeepTypeArguments(*this, subflags, args1, args2, locator);
26962694

0 commit comments

Comments
 (0)