Skip to content

[4.0] [ClangImporter] Don't infer 'Comparable' for swift_wrapper. #9202

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

Conversation

jrose-apple
Copy link
Contributor

@jrose-apple jrose-apple commented May 2, 2017

Cherry-pick of #9120. Reviewed by @DougGregor.
rdar://problem/30166538

…g#9120)

The underlying type's ordering may not be appropriate for the wrapped
type (think an ordered list whose underlying type is NSString).
Frameworks can always add a Comparable conformance explicitly.

We squeak out of this being a source-breaking change by virtue of
never having released a working version of it. Rintaro fixed the
ambiguity problems back in f11b741, but that was after the last
rebranch for Swift 3.1.

rdar://problem/30166538
@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@jrose-apple
Copy link
Contributor Author

@shahmishal https://ci.swift.org/job/swift-PR-osx/7236/ seems stuck…any way to unstick it without having to run all the tests again?

@jrose-apple jrose-apple merged commit ae84024 into swiftlang:swift-4.0-branch May 3, 2017
@jrose-apple jrose-apple deleted the 4.0-wrappers-are-not-comparable branch May 3, 2017 00:41
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