Skip to content

[ConstraintSystem] Improve precision of "too complex" diagnostic #58400

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 4 commits into from
Apr 28, 2022

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Apr 25, 2022

This is a follow-up to #41282 which introduced a
timer per sub-target. This patch takes advantage of the fact that ExpressionTime
holds locator and uses that to compute affected range, which helps to point to a
particular sub-target were "too complex" has been detected.

xedin added 4 commits April 25, 2022 10:14
Solver can now handle multiple different targets e.g. multi-statement
closures, result builders etc. So it's more appropriate to say that
the constraint system is too complex.
This would help to diagnose the initial point where constraint
system has been determine to be "too complex"
@xedin xedin requested a review from hborla April 25, 2022 21:16
@xedin
Copy link
Contributor Author

xedin commented Apr 27, 2022

@swift-ci please test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants