Skip to content

[Distributed] Missing diagnostic for onReturn ad-hoc req when it is mutating witness #59162

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 2 commits into from
May 31, 2022

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented May 31, 2022

Resolves #59159
Resolves rdar://94127604

Tho re-building swift locally still, so will first verify locally

@ktoso ktoso changed the title [Distributed] onReturn ad-hoc req must not be mutating [Distributed] Missing diagnostic for onReturn ad-hoc req when it is mutating witness May 31, 2022
@ktoso ktoso added the distributed Feature → concurrency: distributed actor label May 31, 2022
@ktoso ktoso force-pushed the wip-adhoc-mutating-onreturn branch from f04c3c9 to 2b0b389 Compare May 31, 2022 02:53
@ktoso
Copy link
Contributor Author

ktoso commented May 31, 2022

Also added the same checks to remoteCall as the same is true over there.

@ktoso ktoso force-pushed the wip-adhoc-mutating-onreturn branch from 670d944 to ec909e3 Compare May 31, 2022 04:56
@ktoso
Copy link
Contributor Author

ktoso commented May 31, 2022

@swift-ci please smoke test

@ktoso ktoso force-pushed the wip-adhoc-mutating-onreturn branch from 04f469c to 402501d Compare May 31, 2022 06:10
@swiftlang swiftlang deleted a comment from xedin May 31, 2022
@ktoso
Copy link
Contributor Author

ktoso commented May 31, 2022

@swift-ci please smoke test

@ktoso ktoso merged commit 9889586 into swiftlang:main May 31, 2022
@ktoso ktoso deleted the wip-adhoc-mutating-onreturn branch May 31, 2022 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
distributed Feature → concurrency: distributed actor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Distributed: cannot use mutating member on immutable value, 'handler' is immutable
2 participants