Skip to content

[Docs] Clarify partial_apply's ownership of @inout_aliasable arguments. #26523

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

Conversation

rxwei
Copy link
Contributor

@rxwei rxwei commented Aug 6, 2019

partial_apply does not own @inout_aliasable arguments, so the original description "the closure does however take ownership of the partially applied arguments" is not accurate. This patch makes things clear.

Context: Does partial_apply not take ownership of @inout_aliasable arguments?

`partial_apply` does not own `@inout_aliasable` arguments, so the original description "the closure does however take ownership of the partially applied arguments" is not accurate. This patch makes things clear.
@rxwei rxwei requested a review from jckarter August 6, 2019 22:52
@rxwei
Copy link
Contributor Author

rxwei commented Aug 6, 2019

@swift-ci please smoke test

@jckarter
Copy link
Contributor

IIRC, the same behavior applies to @inout captures, even though maybe we never emit those currently. Thanks!

@jckarter jckarter merged commit ca4c221 into swiftlang:master Aug 10, 2019
@jckarter
Copy link
Contributor

This is at least an improvement over what's there for the time being.

@rxwei rxwei deleted the clarify-partial-apply-inout-aliasable branch August 10, 2019 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