[Diagnostics] NFC: Rename a fix/diagnostic for missing .rawValue reference

This commit is contained in:
Pavel Yaskevich
2020-06-03 08:48:33 -07:00
parent 0f6665cae6
commit b938f960df
5 changed files with 23 additions and 30 deletions

View File

@@ -3184,7 +3184,7 @@ bool ConstraintSystem::repairFailures(
if (!isValueOfRawRepresentable(expectedType, rawReprType))
return false;
conversionsOrFixes.push_back(UseValueTypeOfRawRepresentative::create(
conversionsOrFixes.push_back(UseRawValue::create(
*this, rawReprType, expectedType, getConstraintLocator(locator)));
return true;
};
@@ -9578,7 +9578,7 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyFixConstraint(
case FixKind::UsePropertyWrapper:
case FixKind::UseWrappedValue:
case FixKind::ExpandArrayIntoVarargs:
case FixKind::UseValueTypeOfRawRepresentative:
case FixKind::UseRawValue:
case FixKind::ExplicitlyConstructRawRepresentable:
case FixKind::SpecifyBaseTypeForContextualMember:
case FixKind::CoerceToCheckedCast: