File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -4620,9 +4620,7 @@ bool InaccessibleMemberFailure::diagnoseAsError() {
4620
4620
auto &cs = getConstraintSystem ();
4621
4621
auto *locator =
4622
4622
cs.getConstraintLocator (baseExpr, ConstraintLocator::Member);
4623
- if (llvm::any_of (cs.getFixes (), [&](const ConstraintFix *fix) {
4624
- return fix->getLocator () == locator;
4625
- }))
4623
+ if (cs.hasFixFor (locator))
4626
4624
return false ;
4627
4625
}
4628
4626
Original file line number Diff line number Diff line change @@ -558,8 +558,8 @@ class ContextualFailure : public FailureDiagnostic {
558
558
// / Diagnose failed conversion in a `CoerceExpr`.
559
559
bool diagnoseCoercionToUnrelatedType () const ;
560
560
561
- // If we're trying to convert something of type "() -> T" to T,
562
- // then we probably meant to call the value.
561
+ // / If we're trying to convert something of type "() -> T" to T,
562
+ // / then we probably meant to call the value.
563
563
bool diagnoseMissingFunctionCall () const ;
564
564
565
565
// / Produce a specialized diagnostic if this is an invalid conversion to Bool.
@@ -1376,11 +1376,11 @@ class MutatingMemberRefOnImmutableBase final : public FailureDiagnostic {
1376
1376
bool diagnoseAsError () override ;
1377
1377
};
1378
1378
1379
- // Diagnose an attempt to use AnyObject as the root type of a KeyPath
1380
- //
1381
- // ```swift
1382
- // let keyPath = \AnyObject.bar
1383
- // ```
1379
+ // / Diagnose an attempt to use AnyObject as the root type of a KeyPath
1380
+ // /
1381
+ // / ```swift
1382
+ // / let keyPath = \AnyObject.bar
1383
+ // / ```
1384
1384
class AnyObjectKeyPathRootFailure final : public FailureDiagnostic {
1385
1385
1386
1386
public:
You can’t perform that action at this time.
0 commit comments