Skip to content

[4.2 2018-04-30][Demangle to metadata] Support simple extension contexts. #16540

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

Explanation: Support runtime demangling for types nested within some simple extension contexts. There is more work to be done here, but this change is a strict improvement over what we had, and addresses a known regression from Swift 4.1.
Scope: Only affects the runtime, when demangling type names for types nested in extension contexts.
Radar/SR Issue: rdar://problem/40071688
Risk: Low risk; the runtime will currently fail on these cases. This change, while incomplete (i.e., we have additional known failures)
Testing: New tests for this functionality; compiler regression tests.
Reviewer: @jckarter

Support demangling for types nested within some simple extension contexts.
Still does not support nested types within constrained extensions that
involve same-type constraints among generic parameters, nor
deeply-nested types in extensions. However, it fixes
rdar://problem/40071688.

(cherry picked from commit 0d438c9)
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor
Copy link
Member Author

@swift-ci please nominate

@DougGregor DougGregor merged commit 8a4d810 into swiftlang:swift-4.2-branch-04-30-2018 May 11, 2018
@DougGregor DougGregor deleted the demangle-to-metadata-ext-4.2-04-30-2018 branch May 11, 2018 19:17
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.

2 participants