-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Roll back a portion of SE-0110 #10027
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
Roll back a portion of SE-0110 #10027
Conversation
@swift-ci Please smoke test |
@swift-ci Please test source compatibility |
@slavapestov @rjmccall I still need to make another pass over the tests to see if I need to add additional tests, see if the behavior when generics are involved makes sense, and fixup a couple migrator tests, but so far this seems like a reasonable way to allow a very narrow exception to get back some of the usability of closures that accept multiple arguments being used in places that expect to call closures that except a tuple. |
@bitjammer Have you seen this assertion failure in the migrator code before? I would expect that some errors & fixits would no longer be present as a result of my changes, but not that the migrator code would run into assertions as a result.
|
Yes, that means that (usually) we forgot to make the destination directory for the migrated swift or remap file. I'm guessing you made something compile that didn't before? That's why the test is continuing on into the migrator and emitting migrated contents. I think that test will need to be updated to some other code that can't compile (and doesn't have proactive fix-its that the migrator can try to pick up before actually doing the migration). |
To be clear, the test is not supposed to rm -rf/mkdir because it's not supposed to make it to emitted migrated stuff. It just needs to be updating to something else that still doesn't compile. |
@swift-ci Please smoke test |
@swift-ci Please test source compatibility |
1 similar comment
@swift-ci Please test source compatibility |
I'd rather we did this by going back to the Swift 3.1 behavior instead of adding new unproven semantics. |
Something like this: #10257 |
@bitjammer David, my change here backs out 726adfb because it no longer seems necessary with this update to the type checker since we no longer emit that fixit for these cases. I also updated never_compiles_safely_exits_breaking_code.swift as a result as well, but I think that was from a different commit. Do these look okay? |
@swift-ci Please test source compatibility |
As long as you feel that the diagnostic won't come up in other cases which would be surprising during migration, it's fine by me if you want to remove that filter. |
@swift-ci Please test source compatibility |
1 similar comment
@swift-ci Please test source compatibility |
@swift-ci Please smoke test |
As described in: https://lists.swift.org/pipermail/swift-evolution-announce/2017-June/000386.html Specifically allow an N-ary argument function to be passed as an argument in a place where a function of a single N-tuple is expected. Fixes: rdar://problem/32875953
@swift-ci Please smoke test |
As described in:
Specifically allow an N-ary argument function to be passed as an
argument in a place where a function of a single N-tuple is expected.
Fixes: rdar://problem/32875953