Skip to content

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

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

Conversation

jrose-apple
Copy link
Contributor

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

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

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - 178e5ad
Test requested by - @jrose-apple

@DougGregor
Copy link
Member

@swift-ci please clean smoke test Linux

@DougGregor
Copy link
Member

@swift-ci please smoke test macOS

@jrose-apple
Copy link
Contributor Author

I didn't see what the failure was before the bots got reset. Hm.

@swift-ci Please test macOS

@jrose-apple jrose-apple merged commit de969c6 into swiftlang:master May 2, 2017
@jrose-apple jrose-apple deleted the wrappers-are-not-comparable branch May 2, 2017 18:41
jrose-apple added a commit to jrose-apple/swift that referenced this pull request May 2, 2017
…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 added a commit that referenced this pull request May 3, 2017
…9202)

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
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