Skip to content

Commit a5ff0ee

Browse files
committed
[AutoDiff] Update API/ABI status for attributes.
`@differentiating` and `@transposing` are: - API/ABI stable to add. (The declaration is unaffected.) - API/ABI breaking to remove. `@noDerivative` is API/ABI breaking to add/remove. Adding/removing the attribute changes derivative code behavior.
1 parent 04dca63 commit a5ff0ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/swift/AST/Attr.def

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -510,19 +510,19 @@ DECL_ATTR(differentiable, Differentiable,
510510
90)
511511
DECL_ATTR(differentiating, Differentiating,
512512
OnFunc | LongAttribute | AllowMultipleAttributes |
513-
ABIStableToAdd | ABIStableToRemove | APIStableToAdd | APIStableToRemove |
513+
ABIStableToAdd | ABIBreakingToRemove | APIStableToAdd | APIBreakingToRemove |
514514
NotSerialized, 91)
515515
SIMPLE_DECL_ATTR(compilerEvaluable, CompilerEvaluable,
516516
OnAccessor | OnFunc | OnConstructor | OnSubscript |
517517
ABIStableToAdd | ABIStableToRemove | APIStableToAdd | APIStableToRemove |
518518
NotSerialized, 92)
519519
SIMPLE_DECL_ATTR(noDerivative, NoDerivative,
520520
OnVar |
521-
ABIStableToAdd | ABIStableToRemove | APIStableToAdd | APIStableToRemove,
521+
ABIBreakingToAdd | ABIBreakingToRemove | APIBreakingToAdd | APIBreakingToRemove,
522522
93)
523523
DECL_ATTR(transposing, Transposing,
524524
OnFunc | LongAttribute | AllowMultipleAttributes |
525-
ABIStableToAdd | ABIStableToRemove | APIStableToAdd | APIStableToRemove |
525+
ABIStableToAdd | ABIBreakingToRemove | APIStableToAdd | APIBreakingToRemove |
526526
NotSerialized, 94)
527527

528528
SIMPLE_DECL_ATTR(IBSegueAction, IBSegueAction,

0 commit comments

Comments
 (0)