-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Revert "Allow implicit self in escaping closures when self usage is unlikely to cause cycle" #28903
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
@swift-ci please test Windows platform |
@swift-ci smoke test |
By the way, I think the problem lies in https://github.com/apple/swift/pull/23934/files#diff-3f6a161822412eea4b0e705487dd88c1L2446-L2447
The order in which the parameters are evaluated is implementation defined, and in MSVC happens to be reverse order. So I think the assertion happens because If everyone agrees, I would not mind preparing a PR with the change. |
Created #28906 with a possible fix. Linux doesn't show a difference. I hope MSVC will. |
Thank you @drodriguez! |
Yeah, lets go with #28906 instead. |
Was traveling all day today so just catching up on this. Thanks for jumping on that @drodriguez! Is there a reason that Windows is not a part of the CI workflow before merging? |
Many. The Windows machines (2) are not managed by Apple. They are part of the community CI. Growing that number further will allow pre-merge validation, but growing that number if painful because deploying/managing Windows is painful and the community CI requirements. We are quite diligent in catching most problems post-merge, but with the branch freezes, we have a little bit of a scramble. In any case, thanks for the contribution. It was a very non obvious things to catch coding or reviewing (it took me a couple of times looking where the assertion was happening for my lightbulb to light up :D). |
Gotcha, thanks for the context. Excellent catch! |
Reverts #23934
This should restore the Windows CI to green. Revert to ensure that the CI is green during lockdown.