Skip to content

Commit 7529c17

Browse files
committed
Add attr to enable lexical lifetime per function.
Enables modules to migrate to the new lifetime rules incrementally.
1 parent c1d6b43 commit 7529c17

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

gyb_syntax_support/AttributeKinds.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,12 @@ def __init__(self, name, swift_name=None):
603603
OnFunc, OnParam, OnVar, OnNominalType,
604604
code=117),
605605

606+
SimpleDeclAttribute('_lexicalLifetimes', 'LexicalLifetimes',
607+
UserInaccessible,
608+
ABIStableToAdd, ABIStableToRemove,
609+
APIStableToAdd, APIStableToRemove,
610+
OnFunc, code=36),
611+
606612
SimpleDeclAttribute('_noEagerMove', 'NoEagerMove',
607613
UserInaccessible,
608614
ABIStableToAdd, ABIStableToRemove,

0 commit comments

Comments
 (0)