@@ -3407,7 +3407,7 @@ ConstraintSystem::matchExistentialTypes(Type type1, Type type2,
34073407
34083408 if (last.is<LocatorPathElt::ApplyArgToParam>()) {
34093409 auto *fix = AllowArgumentMismatch::create(
3410- *this, type1, proto, getConstraintLocator(locator ));
3410+ *this, type1, proto, getConstraintLocator(anchor, path ));
34113411
34123412 // Impact is 2 here because there are two failures
34133413 // 1 - missing conformance and 2 - incorrect argument type.
@@ -3443,14 +3443,14 @@ ConstraintSystem::matchExistentialTypes(Type type1, Type type2,
34433443
34443444 if (isExpr<CoerceExpr>(anchor)) {
34453445 auto *fix = ContextualMismatch::create(
3446- *this, type1, type2, getConstraintLocator(locator ));
3446+ *this, type1, type2, getConstraintLocator(anchor, path ));
34473447 if (recordFix(fix))
34483448 return getTypeMatchFailure(locator);
34493449 break;
34503450 }
34513451
34523452 auto *fix = MissingConformance::forContextual(
3453- *this, type1, proto, getConstraintLocator(locator ));
3453+ *this, type1, proto, getConstraintLocator(anchor, path ));
34543454
34553455 if (recordFix(fix))
34563456 return getTypeMatchFailure(locator);
0 commit comments