Skip to content

Conversation

@gottesmm
Copy link
Contributor

I will add the CCC later.

gottesmm added 6 commits May 19, 2023 14:59
I followed the same model that we used for consume, namely we need an identifier
to copy. This ensures that if we have a function called copy or a variable
called copy, we do not break source stability.

rdar://101862423
(cherry picked from commit 895977a)
… of move operator and add consume tests.

rdar://109413392
(cherry picked from commit 4e2633d)
…ndle consume used as a name in case stmt as pattern match.

rdar://109413278
(cherry picked from commit bc84e48)
(cherry picked from commit b3d38fd)
@gottesmm gottesmm requested a review from ahoppen as a code owner May 19, 2023 22:15
@gottesmm
Copy link
Contributor Author

swiftlang/swift#66032 is the swift 5.9 commit.

@gottesmm
Copy link
Contributor Author

swiftlang/swift#66032

@swift-ci test

@gottesmm
Copy link
Contributor Author

MacOS test failure is due to a slight difference in enablement flags on 5.9 vs main:

/home/build-user/swift/test/Sema/copy_expr_noimplicit_copy.swift:8:3: error: unexpected error produced: Can not use feature when experimental move only is disabled! Pass the frontend flag -enable-experimental-move-only to swift to enable the usage of this language feature
@_noImplicitCopy let x = Klass()
^

I just fixed that in the other PR

@gottesmm
Copy link
Contributor Author

swiftlang/swift#66032

@swift-ci test

1 similar comment
@gottesmm
Copy link
Contributor Author

swiftlang/swift#66032

@swift-ci test

@gottesmm gottesmm merged commit ab3ce4a into swiftlang:release/5.9 May 23, 2023
@gottesmm gottesmm deleted the release-5.9-copy-consume branch May 23, 2023 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants