Skip to content

Conversation

@DougGregor
Copy link
Member

…ing protocol

An isolated conformance to a SendableMetatype-inheriting protocol
cannot actually be used in generic code, because the SendableMetatype
requirement itself prevents it. Warn about this case so folks aren't
surprised at runtime.

This is a part of issue swiftlang#82550 / rdar://154437489.
…to error

Forming an isolated conformance to a SendableMetatype-inherting
protocol opens up a soundness hole any time the conformance is used.
Reword the recently-introduced diagnostic for this case and promote it
to an error (except when it's preconcurrency).

Fixes rdar://154808002.
@DougGregor DougGregor requested a review from a team as a code owner July 7, 2025 20:21
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor DougGregor merged commit 719fb9c into swiftlang:release/6.2 Jul 8, 2025
5 checks passed
@DougGregor DougGregor deleted the isolated-conformance-to-sendablemetatype-proto-error-6.2 branch July 8, 2025 16:09
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