Skip to content

Commit 64f8a6b

Browse files
[CSDiagnostics] Renaming ContextualFailure CoerceExpr method naming
1 parent d9cfbd3 commit 64f8a6b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/Sema/CSDiagnostics.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1854,7 +1854,7 @@ bool ContextualFailure::diagnoseAsError() {
18541854
return true;
18551855
}
18561856

1857-
if (diagnoseConversionInCoercion())
1857+
if (diagnoseCoercionToUnrelatedType())
18581858
return true;
18591859

18601860
return false;
@@ -2223,7 +2223,7 @@ bool ContextualFailure::diagnoseMissingFunctionCall() const {
22232223
return true;
22242224
}
22252225

2226-
bool ContextualFailure::diagnoseConversionInCoercion() const {
2226+
bool ContextualFailure::diagnoseCoercionToUnrelatedType() const {
22272227
auto *anchor = getAnchor();
22282228

22292229
if (auto *coerceExpr = dyn_cast<CoerceExpr>(anchor)) {

lib/Sema/CSDiagnostics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ class ContextualFailure : public FailureDiagnostic {
556556
bool diagnoseConversionToNil() const;
557557

558558
/// Diagnose failed conversion in a `CoerceExpr`.
559-
bool diagnoseConversionInCoercion() const;
559+
bool diagnoseCoercionToUnrelatedType() const;
560560

561561
// If we're trying to convert something of type "() -> T" to T,
562562
// then we probably meant to call the value.

0 commit comments

Comments
 (0)