We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f145264 commit d9cfbd3Copy full SHA for d9cfbd3
lib/Sema/CSDiag.cpp
@@ -1888,16 +1888,6 @@ bool FailureDiagnosis::visitCoerceExpr(CoerceExpr *CE) {
1888
if (!expr)
1889
return true;
1890
1891
- auto ref = expr->getReferencedDecl();
1892
- if (auto *decl = ref.getDecl()) {
1893
- // Without explicit coercion we might end up
1894
- // type-checking sub-expression as unavaible
1895
- // declaration, let's try to diagnose that here.
1896
- if (AvailableAttr::isUnavailable(decl))
1897
- return diagnoseExplicitUnavailability(
1898
- decl, expr->getSourceRange(), CS.DC, dyn_cast<ApplyExpr>(expr));
1899
- }
1900
-
1901
return false;
1902
}
1903
0 commit comments