mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
ABI checker: removing deprecated APIs should be considered acceptable
This commit is contained in:
@@ -553,7 +553,10 @@ static void diagnoseRemovedDecl(const SDKNodeDecl *D) {
|
||||
if (D->hasDeclAttribute(DeclAttrKind::DAK_AlwaysEmitIntoClient))
|
||||
return;
|
||||
}
|
||||
D->emitDiag(SourceLoc(), diag::removed_decl, D->isDeprecated());
|
||||
// Don't diagnose removal of deprecated APIs.
|
||||
if (!D->isDeprecated()) {
|
||||
D->emitDiag(SourceLoc(), diag::removed_decl, false);
|
||||
}
|
||||
}
|
||||
|
||||
// This is first pass on two given SDKNode trees. This pass removes the common part
|
||||
|
||||
Reference in New Issue
Block a user