-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[SR-12033] [Sema] Do not allow inferring defaultable closure () -> $T
for autoclosure arguments result
#35503
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
ea8108a
to
3de257e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks much better, just need to figure out how to avoid adding new flags to the binding set (since they can't be maintained in incremental mode I'm working on).
3de257e
to
e174c5f
Compare
Great, I made some changes and now to track the exact |
I'm working on making it right now. The idea is that |
Awesome, it seems that it will give a good speed up on inference 🎉 |
No really, it shouldn't collide with that work if everything is done in a stateless manner. |
e174c5f
to
e28a822
Compare
Right! I modify the approach to a way where we don't have a state on the binding set. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still state although passed in. Need to figure out how to do that without any form of state. Alternative solution might be to add that constraint to the binding set (since it doesn't affect the score) and remove it during finalization.
Ah ok, I see thanks :) |
No worries, I should have been more precise :) |
Right, looking into it! |
Hey @xedin :) I'm trying to figure out why given:
If I try wait for finalization |
e28a822
to
0b75ade
Compare
Yes, my suggesting what dealing with it during |
Ah that makes sense, thanks :) |
0b75ade
to
ae0bf9f
Compare
6a1a511
to
053db31
Compare
6b89be0
to
b5b687a
Compare
e4e78c2
to
3330083
Compare
@swift-ci Please smoke test |
@swift-ci Please test source compatibility |
1 similar comment
@swift-ci Please test source compatibility |
@swift-ci Please smoke test MacOS platform |
Compat suit seems to be broken on building spm
|
I'm still looking but suspect it could be something related to recent changes on apple/swift-crypto#71 |
swiftlang/swift-package-manager#3238 |
We haven't merged swiftlang/swift-package-manager#3238 yet but could be related to swiftlang/swift-package-manager#3202. Investigating. |
I think that @yim-lee is correct about swiftlang/swift-package-manager#3202 raising this issue - but I'm not sure I understand how it is causing the issue as of yet. It seems to be looking for a generated modulemap, which is not needed as swift-crypto provides a pre-generated one. I wonder if there is some cached content. |
@LucianoPAlmeida We will need @shahmishal's help with #35503 (comment). Sorry for the trouble! |
No worries! Thank you for looking :)) |
@swift-ci Please test source compatibility |
Seems like there is a FAIL is source compatibility suit https://ci.swift.org/job/swift-PR-source-compat-suite-debug/3508//artifact/swift-source-compat-suite/FAIL_Dollar-Dollar.xcodeproj_4.0_BuildXcodeProjectScheme_Dollar_generic-platform-macOS.log, I'm still not sure how those changes could cause this issue... it seems unrelated but I can't say for sure ... |
This is the same failure on the main branch, it's not related to your change. |
Ah great, thank you @shahmishal :) |
So @xedin anything else on this one? |
Nope, this is great :) |
Haha I ping you at the same time 🤣 😆 |
Prevent defaultable closure binding to be added if its connected to an auto closure argument.
Sorry it took some time, but have been between other things and actually giving a thought if this would be the correct
approach and about source compatibility in this case.
Resolves SR-12033.