Skip to content

[6.0][sending] Do not allow for sending to be used together with borrowing. #74096

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Jun 3, 2024

Explanation: It was decide in the review for sending that we would ban borrowing and sending together to leave open the design space. This PR just implements that by making it an error to do so.

Radars:

  • rdar://129116182

Original PRs:

Risk: Low. Just affects sending.
Testing: Added tests to the test suite.
Reviewer: N/A

We are leaving this as an open part of the design space. In the mean time if
people need a +0 parameter, they can use __shared with sending.

rdar://129116182
(cherry picked from commit 46be608)
@gottesmm gottesmm requested a review from a team as a code owner June 3, 2024 16:32
@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 3, 2024

@swift-ci test

@gottesmm gottesmm changed the title [sending] Do not allow for sending to be used together with borrowing. [6.0][sending] Do not allow for sending to be used together with borrowing. Jun 3, 2024
@gottesmm gottesmm merged commit 1206144 into swiftlang:release/6.0 Jun 3, 2024
5 checks passed
@gottesmm gottesmm deleted the release/6.0-129116182 branch June 3, 2024 22:56
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