Skip to content

[4.0] [QoI] Improve diagnostics of unsatisfied generic requirements #11236

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

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jul 27, 2017

  • Description: Fixes a problem related to presence of InOutType in function parameters
    which diagnostics related to generic parameter requirements didn't handle
    correctly, and improves diagnostics for unsatisfied generic requirements
    in operator applications, which we didn't attempt to diagnose at all.

  • Origination: Once String because a Sequence some of the diagnostics degraded, this patch attempts to correct this situation by improving diagnostics to generic requirements.

  • Risk: Low.

  • Tested: Added new tests, Swift CI.

  • Reviewed by: Doug Gregor, Jordan Rose.

  • Resolves: rdar://problem/33477726
    (cherry picked from commit 2420067)

@xedin xedin requested a review from DougGregor July 27, 2017 23:01
@xedin xedin changed the title [QoI] Improve diagnostics of unsatisfied generic requirements [4.0] [QoI] Improve diagnostics of unsatisfied generic requirements Jul 27, 2017
@xedin
Copy link
Contributor Author

xedin commented Jul 27, 2017

@swift-ci please test

Fixes a problem related to presence of InOutType in function parameters
which diagnostics related to generic parameter requirements didn't handle
correctly, and improves diagnostics for unsatisfied generic requirements
in operator applications, which we didn't attempt to diagnose at all.

Resolves: rdar://problem/33477726
(cherry picked from commit 2420067)
@xedin xedin force-pushed the rdar-33477726-4.0 branch from 4d22e6f to becbcf3 Compare July 27, 2017 23:32
@swiftlang swiftlang deleted a comment from swift-ci Jul 27, 2017
@xedin
Copy link
Contributor Author

xedin commented Jul 27, 2017

@swift-ci please test

@swiftlang swiftlang deleted a comment from swift-ci Jul 27, 2017
@swiftlang swiftlang deleted a comment from swift-ci Jul 27, 2017
@xedin
Copy link
Contributor Author

xedin commented Jul 28, 2017

@DougGregor please review for 4.0

@xedin xedin added this to the Swift 4.0 milestone Jul 28, 2017
Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ematejska ematejska merged commit 57de9c4 into swiftlang:swift-4.0-branch Jul 28, 2017
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