Skip to content

Remove an old restriction on _ObjectiveCBridgeable conformances. #71426

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

Historically, we checked against a specific allowlist for a certain set of types that were allowed to introduce an _ObjectiveCBridgeable conformance in a different module that where the type was defined. This rigid allow-list isn't really buying us much, but it's getting in the way of some refactoring for swift-foundation that's changing the layering. Remove this diagnostic, since it really isn't buying us much nowadays, and we have the more general warnings about retroactive conformances to make folks think twice.

Historically, we checked against a specific allowlist for a certain set
of types that were allowed to introduce an `_ObjectiveCBridgeable`
conformance in a different module that where the type was defined.
This rigid allow-list isn't really buying us much, but it's getting in
the way of some refactoring for swift-foundation that's changing
the layering. Remove this diagnostic, since it really isn't buying us
much nowadays, and we have the more general warnings about retroactive
conformances to make folks think twice.
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor DougGregor enabled auto-merge February 7, 2024 00:16
@DougGregor DougGregor merged commit 3a5ee89 into swiftlang:main Feb 7, 2024
@DougGregor DougGregor deleted the lift-retroactive-objc-bridgeable-conformance branch February 7, 2024 08:13
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