-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[ConstraintSystem] Overhaul ambiguity diagnostics #31713
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
xedin
merged 22 commits into
swiftlang:master
from
xedin:no-ranking-with-ambiguous-with-fixes
Jun 16, 2020
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
6b52016
[ConstraintSystem] Rank solutions based on overload choices only afte…
xedin a888518
[ConstraintSystem] Encapsulate a way to diagnose ambiguity for aggreg…
xedin 7d3f5e3
[ConstraintSystem] Overhaul ambiguity diagnostics
xedin cf3f52c
[ConstraintSystem] NFC: Leave notes on the algorithm used by `diagnos…
xedin d9594c7
[TypeChecker] NFC: Adjust tests improved by new approach for ambiguit…
xedin 7641d9c
[CSFix] Make it possible to diagnose r-value -> l-value fix for ambig…
xedin ac2305e
[ConstraintSystem] Increase impact of fixes for some conditional requ…
xedin 9067ed2
[ConstraintSystem] Specialize diagnostic for `~=` to talk about expre…
xedin b9aa70b
[ConstraintSystem] NFC/Debug: Log solutions before attempting to diag…
xedin 7bbf9fe
[Diagnostics] If aggregate fix consists of identical fixes diagnose i…
xedin b0070f5
[Diagnostics] Check whether all contextual mismatches has the same ty…
xedin 13b4fcc
[Diagnostics] Diagnose ambiguity related to contextual type specifically
xedin e2e57ad
[ConstraintSystem] Turn 'omit ' into a contextual mismatch it is
xedin b407f7c
[ConstraintSystem] Avoid recording duplicate fixes for contextual typ…
xedin d23b938
[Diagnostics] Implement `IgnoreAssignmentDestinationType::diagnoseFor…
xedin 3ebf633
[ConstraintSystem] Increase impact of conformance failure associated …
xedin 0af9a28
[Diagnostics] Allow property wrapper fixes to be diagnosed as ambiguity
xedin 82fcee7
[Diagnostics] NFC: Adjust diagnostic test-cases improved by new ambig…
xedin f854cc6
[ConstraintSystem] Attach candidate notes either to decl (if it has v…
xedin 2c0b8ca
[Diagnostics] Add a tailored diagnostic for function mismatch in argu…
xedin c0840fd
[TypeChecker] NFC: Restore test-cases removed by incorrect merge
xedin 73667cd
[Diagnostics] Use `Id_MatchOperator` to check whether given operator …
xedin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.