Skip to content

[6.2] Sema: Relax diagnosis of implied marker protocol conformances with mismatched availability #82310

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

slavapestov
Copy link
Contributor

@slavapestov slavapestov commented Jun 17, 2025

6.2 cherry-pick of #82308

  • Description: Fix a spurious "redundant Sendable conformance" warning when two conformances with different availability both implied a conformance to Sendable.

  • Origination: This check was introduced in [ConformanceLookup] Don't allow skipping inherited unavailable conformances in favor of explicit available ones. #75135. The intent was to prevent an implied Sendable conformance from overriding an existing unavailable Sendable conformance. This change just relaxes the check to only consider unconditional unavailability.

  • Radar: Fixes rdar://142873265.

  • Tested: New tests added. (The FIXME mentioned is an existing problem and not a regression.)

  • Reviewed by: @hborla

…smatched availability

This logic was introduced in swiftlang#75135.
The intent was to prevent an implied conformance from overriding an
existing unavailable one, for example in the case of Sendable. Let's
relax this check a bit to only diagnose if the mismatch is in the
unconditional availability, and not OS version.

Fixes rdar://142873265.
@slavapestov slavapestov requested a review from a team as a code owner June 17, 2025 18:45
@slavapestov
Copy link
Contributor Author

@swift-ci Please test

@slavapestov slavapestov enabled auto-merge June 18, 2025 02:31
@slavapestov slavapestov merged commit 720d35e into swiftlang:release/6.2 Jun 18, 2025
5 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