Skip to content

[5.5][CSSimplify] Allow overload choices with missing labels to be considered for diagnostics #37138

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
Apr 29, 2021

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Apr 29, 2021

Cherry-pick of #37115

Introduce a new constraint flag - "disable for performance" and use it to
allow solver to consider overload choices where the only issue is
missing one or more labels - this makes it for a much better
diagnostic experience without any performance impact for valid code.

This is a workaround for the problem where simplifyAppliedOverloadsImpl
does filtering during constraint generation and disabled choices stay that
way permanently since there is no rollback mechanism for changes to
constraint system that happen before solver scopes are involved.

xedin added 2 commits April 29, 2021 10:27
…red for diagnostics

Let's make use of a newly added "disable for performance" flag to
allow solver to consider overload choices where the only issue is
missing one or more labels - this makes it for a much better
diagnostic experience without any performance impact for valid code.

(cherry picked from commit f36ecf2)
@xedin xedin added the r5.5 label Apr 29, 2021
@xedin xedin requested a review from hborla April 29, 2021 17:29
@xedin
Copy link
Contributor Author

xedin commented Apr 29, 2021

@swift-ci please test

@xedin xedin merged commit 188b87d into swiftlang:release/5.5 Apr 29, 2021
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5 labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants