Skip to content

Commit f96d6d3

Browse files
committed
[Diagnostics] Remove obsolete special case for _ = nil
1 parent a2b3b54 commit f96d6d3

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/Sema/CSDiagnostics.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6980,13 +6980,6 @@ bool MissingContextualTypeForNil::diagnoseAsError() {
69806980
emitDiagnostic(diag::unresolved_nil_literal);
69816981
return true;
69826982
}
6983-
// `_ = nil`
6984-
if (auto *assignment = dyn_cast<AssignExpr>(parentExpr)) {
6985-
if (isa<DiscardAssignmentExpr>(assignment->getDest())) {
6986-
emitDiagnostic(diag::unresolved_nil_literal);
6987-
return true;
6988-
}
6989-
}
69906983
}
69916984

69926985
emitDiagnostic(diag::unresolved_nil_literal);

0 commit comments

Comments
 (0)