Skip to content

[5.5][Diagnostics] Diagnose ambiguous solutions with warnings like regular ambiguities #38347

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
Jul 13, 2021

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jul 12, 2021

Cherry-pick of #38328


  • Explanation:

Fixes an issue in the solver where it would accept one of the solutions
for an ambiguous expression, which results in a crash later in the pipeline.

If solutions either have no fixes at all or all of them are warnings,
let's use diagnoseAmbiguity to diagnose such cases as-if there are
no fixes at all.

Resolves: rdar://79657350
(cherry picked from commit d1e1278)

… ambiguities

If solutions either have no fixes at all or all of the are warnings,
let's use `diagnoseAmbiguity` to diagnose such cases as-if there are
no fixes at all.

Resolves: rdar://79657350
(cherry picked from commit d1e1278)
@xedin xedin added the r5.5 label Jul 12, 2021
@xedin xedin requested a review from a team as a code owner July 12, 2021 18:04
@xedin
Copy link
Contributor Author

xedin commented Jul 12, 2021

@swift-ci please clean test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 1760925

@xedin
Copy link
Contributor Author

xedin commented Jul 12, 2021

@swift-ci please clean test Linux platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 1760925

@xedin
Copy link
Contributor Author

xedin commented Jul 13, 2021

@swift-ci please test macOS platform

@xedin
Copy link
Contributor Author

xedin commented Jul 13, 2021

@swift-ci please nominate

@xedin xedin merged commit eb61302 into swiftlang:release/5.5 Jul 13, 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.

4 participants