Skip to content

[Constraint solver] Do not allow unavailable decls to be favored. #10147

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 1 commit into from
Jun 6, 2017
Merged

[Constraint solver] Do not allow unavailable decls to be favored. #10147

merged 1 commit into from
Jun 6, 2017

Conversation

rudkx
Copy link
Contributor

@rudkx rudkx commented Jun 6, 2017

There is a short-circuiting hack in the constraint solver that speeds up
solving, but isn't generally sound. If we allow unavailable decls to be
considered "favored", this can fire and result in our choosing a
solution that involves the unavailable decl where other solutions exist.

Fixes rdar://problem/32570734.

There is a short-circuiting hack in the constraint solver that speeds up
solving, but isn't generally sound. If we allow unavailable decls to be
considered "favored", this can fire and result in our choosing a
solution that involves the unavailable decl where other solutions exist.

Fixes rdar://problem/32570734.
@rudkx
Copy link
Contributor Author

rudkx commented Jun 6, 2017

@swift-ci Please smoke test

@rudkx rudkx merged commit ea4e3e5 into swiftlang:master Jun 6, 2017
@rudkx rudkx deleted the fix-rdar32570734 branch June 6, 2017 22:11
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.

1 participant