Skip to content

[ownership] Accept @owned partial apply in callee_guaranteed context. #19774

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

Conversation

gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Oct 8, 2018

We already allow for "instantaneous borrowing" for passing @owned values as
@guaranteed arguments. There is no reason why we shouldn't do this for
partial_apply as well.

rdar://29791263

We already allow for "instantaneous borrowing" for passing @owned values as
@guaranteed arguments. There is no reason why we shouldn't do this for
partial_apply as well.

rdar://29791263
@gottesmm
Copy link
Contributor Author

gottesmm commented Oct 8, 2018

@swift-ci smoke test

@gottesmm
Copy link
Contributor Author

This is simple enough IMO for post-commit review.

@gottesmm gottesmm merged commit 9544a00 into swiftlang:master Oct 10, 2018
@gottesmm gottesmm deleted the pr-067f98271f9149a6bef29983356763a2ed07c177 branch October 10, 2018 18:05
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.

1 participant