Skip to content

Commit 9f6660c

Browse files
committed
Make _predatesConcurrency ABI/API stable to add
Using _predatesConcurrency is what prevents adding `@Sendable` to things from breaking the ABI. Yes, technically adding it will break anything that had `@Sendable` before and is now pre-dating concurrency. After discussing with Doug, this was the direction we chose to take.
1 parent 1f198bc commit 9f6660c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/AST/Attr.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ SIMPLE_DECL_ATTR(_noAllocation, NoAllocation,
691691
SIMPLE_DECL_ATTR(_predatesConcurrency, PredatesConcurrency,
692692
OnFunc | OnConstructor | OnProtocol | OnGenericType | OnVar | OnSubscript |
693693
OnEnumElement | UserInaccessible |
694-
ABIBreakingToAdd | ABIBreakingToRemove | APIBreakingToAdd | APIBreakingToRemove,
694+
ABIStableToAdd | ABIBreakingToRemove | APIStableToAdd | APIBreakingToRemove,
695695
125)
696696

697697
CONTEXTUAL_SIMPLE_DECL_ATTR(_const, CompileTimeConst,

0 commit comments

Comments
 (0)