Skip to content

require consume x for noncopyable pattern bindings since they're consuming #66713

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 17, 2023

Conversation

kavon
Copy link
Member

@kavon kavon commented Jun 16, 2023

this was staged in as a warning initially but it was intended to be an error if the consume is not written, so that we can move to a world where these pattern matches are done as a borrowing operation by default when nothing is written there.

rdar://110908714

@kavon kavon requested review from jckarter and removed request for xedin, slavapestov and hborla June 16, 2023 18:49
@kavon
Copy link
Member Author

kavon commented Jun 16, 2023

@swift-ci Please Test Source Compatibility

@kavon
Copy link
Member Author

kavon commented Jun 16, 2023

@swift-ci please smoke test

…nsuming

this was staged in as a warning initially but it was intended to be
an error if it is not written so that we can move to a world where
these pattern matches are done as a borrowing operation instead.

rdar://110908714
@kavon kavon force-pushed the require-switch-consume branch from 94cf206 to 36451ef Compare June 17, 2023 00:19
@kavon
Copy link
Member Author

kavon commented Jun 17, 2023

@swift-ci smoke test and merge

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