Skip to content

[6.0] IRGen: Don't encode conditional requirements to Copyable as normal conformance requirement. #74605

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

jckarter
Copy link
Contributor

@jckarter jckarter commented Jun 21, 2024

Explanation: Fixes a problem when extensions add conformances of standard library types such as Optional that were retrofitted with non-Copyable type support to protocols defined outside of the standard library which would cause dynamic protocol conformance lookup to fail when running on older OSes.
Scope: Back deployment bug fix.
Issue: rdar://129857284
Original PR: #74604
Risk: Low. Fixes code to generate runtime metadata as it was generated for consumption by previous Swift runtime versions.
Testing: Swift CI
Reviewer: @slavapestov

…nformance requirements.

For new runtimes, this is redundant with the invertible requirement encoding, and for
old runtimes, this breaks dynamic conformance checking because Copyable and Escapable
aren't real protocols on those older runtimes. Fixes rdar://129857284.
@jckarter
Copy link
Contributor Author

@swift-ci Please test

@jckarter jckarter merged commit d089f83 into swiftlang:release/6.0 Jun 21, 2024
3 checks passed
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