Skip to content

Commit d73c538

Browse files
committed
[move-only] Add a moveOnly attribute that can be added to nominal types.
Currently it doesn't have any effect.
1 parent 9a660e1 commit d73c538

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/swift/AST/Attr.def

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,12 @@ CONTEXTUAL_SIMPLE_DECL_ATTR(_local, KnownToBeLocal,
735735
APIBreakingToAdd | APIBreakingToRemove,
736736
130)
737737

738+
SIMPLE_DECL_ATTR(_moveOnly, MoveOnly,
739+
OnNominalType |
740+
UserInaccessible |
741+
ABIBreakingToAdd | ABIBreakingToRemove | APIBreakingToAdd | APIBreakingToRemove,
742+
131)
743+
738744
// If you're adding a new underscored attribute here, please document it in
739745
// docs/ReferenceGuides/UnderscoredAttributes.md.
740746

0 commit comments

Comments
 (0)