Skip to content

[5.0] [Mangle] Include generic arguments of extensions for the Objective-C runtime #20789

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

DougGregor
Copy link
Member

The remangler for the Objective-C runtime was dropping generic arguments
of extension contents, leading to collisions with @objc class names.
Include the generic arguments of extensions.

Fixes rdar://problem/45956357.

…runtime

The remangler for the Objective-C runtime was dropping generic arguments
of extension contents, leading to collisions with @objc class names.
Include the generic arguments of extensions.

Fixes rdar://problem/45956357.

(cherry picked from commit cfc0f89)
@DougGregor DougGregor requested a review from a team as a code owner November 27, 2018 04:23
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor
Copy link
Member Author

@apple/swift5-branch-managers this is not an ABI-breaking change, but is important for keeping the Objective-C names of Swift generic classes (which always exist, even when not user-visible) separate. The change is most important for pre-Mojave-era Objective-C runtimes, which would trigger an error if two class names collide.

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 8452941

@DougGregor
Copy link
Member Author

@swift-ci please test macOS

@AnnaZaks AnnaZaks merged commit 40316ca into swiftlang:swift-5.0-branch Dec 4, 2018
@DougGregor DougGregor deleted the remangle-old-ext-generic-args-5.0 branch December 5, 2018 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants