-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[ConstraintSystem] Fix crash on function conversion reliant on conditional conformance #25721
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
cc @xedin I have added a new overload for |
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.
@theblixguy Could you please convert example from validation test to the one which checks produces diagnostic? Also I think there are probably more places which could benefit from using this new method, at least CSDiagnostics probably should.
How about adding new getConstraintLocator
method to FailureDiagnostic
itself to avoid unnecessary indirection?
@xedin Do you mean you want the exact same method in I kept it in CS so the declaration stays in one place (instead of multiple copies). |
@theblixguy Yes, I think it could be done separately but it would make sense to call it on |
… and remove other instances of 0 summary flags
@xedin Okay, I have added it to FailureDiagnostic! Found two more uses of |
@swift-ci please test |
All tests have passed! I'll cherry pick this to 5.1 if that's okay? |
@theblixguy Sounds good, thanks! |
This PR fixes a compiler crasher related to a function conversion reliant on conditional conformance. Example:
Resolves SR-10992.