Skip to content

Commit d2d32a2

Browse files
[CSFix] Remove CSDiag flag on RemoveUnnecessaryCoercion::attempt
1 parent 49ef402 commit d2d32a2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/Sema/CSFix.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,12 +1149,7 @@ bool RemoveUnnecessaryCoercion::attempt(ConstraintSystem &cs, Type fromType,
11491149
auto &ctx = cs.getASTContext();
11501150
if (ctx.LangOpts.DisableRedundantCoercionWarning)
11511151
return false;
1152-
1153-
// Don't diagnose if this is coming from a CSDiag typecheck subExpr diagnostics.
1154-
// We can remove this once CSDiag is gone.
1155-
if (cs.Options.contains(ConstraintSystemFlags::SubExpressionDiagnostics))
1156-
return false;
1157-
1152+
11581153
auto last = locator.last();
11591154
bool isExplicitCoercion =
11601155
last && last->is<LocatorPathElt::ExplicitTypeCoercion>();

0 commit comments

Comments
 (0)