mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Diagnostics] NFC: Use non-initializer diagnostic when raw representable type doesn't conform but .rawValue does
This commit is contained in:
@@ -6842,7 +6842,7 @@ AbstractRawRepresentableFailure::getDiagnostic() const {
|
||||
} else if (locator->isLastElement<LocatorPathElt::ApplyArgToParam>()) {
|
||||
return diag::cannot_convert_argument_value;
|
||||
} else if (locator->isLastElement<LocatorPathElt::AnyRequirement>()) {
|
||||
return diag::cannot_convert_initializer_value_protocol;
|
||||
return diag::type_does_not_conform;
|
||||
}
|
||||
|
||||
return None;
|
||||
|
||||
Reference in New Issue
Block a user