Skip to content

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

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 28, 2021

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 27, 2021 16:11
…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.
@xedin xedin requested a review from hborla April 28, 2021 19:09
@xedin
Copy link
Contributor Author

xedin commented Apr 28, 2021

/cc @xwu

@xedin
Copy link
Contributor Author

xedin commented Apr 28, 2021

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Apr 28, 2021

@swift-ci please test source compatibility

@xedin
Copy link
Contributor Author

xedin commented Apr 28, 2021

@shahmishal Debug suite failed with rm: /Users/buildnode/jenkins/workspace/swift-PR-source-compat-suite-debug/swift-source-compat-suite/project_cache/Kickstarter-ReactiveExtensions: Directory not empty

@xedin
Copy link
Contributor Author

xedin commented Apr 28, 2021

@swift-ci please test source compatibility debug

@shahmishal
Copy link
Member

@shahmishal Debug suite failed with rm: /Users/buildnode/jenkins/workspace/swift-PR-source-compat-suite-debug/swift-source-compat-suite/project_cache/Kickstarter-ReactiveExtensions: Directory not empty

cc: @clackary

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.

3 participants