[Sema] NFC: reword "only concrete types can conform to protocols" diagnostic

This commit is contained in:
Pavel Yaskevich
2018-08-03 14:27:00 -07:00
parent c60e5176e0
commit f15e17a629
8 changed files with 14 additions and 14 deletions

View File

@@ -2779,7 +2779,7 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyConformsToConstraint(
auto typeRequirement = path.back();
std::pair<Expr *, unsigned> reqLoc = {anchor, typeRequirement.getValue()};
MissingConformances[reqLoc] = {type.getPointer(), protocol};
// Let's strip all of the uncessary information from locator,
// Let's strip all of the unnecessary information from locator,
// diagnostics only care about anchor - to lookup type,
// and what was the requirement# which is not satisfied.
ConstraintLocatorBuilder requirement(getConstraintLocator(anchor));