Skip to content

[5.9] Sema: Relax @backDeployed availability conflict diagnostics. #64751

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

tshortli
Copy link
Contributor

Cherry-pick of #64750.

Only diagnose @backDeployed as conflicting with unavailability if the attribute that is making the declaration unavailable is unconditional or it is for the same base platform. For example, it should be allowed to back deploy a function on macOS while making that function unavailable for application extensions on macOS.

Resolves rdar://107291474

Only diagnose `@backDeployed` as conflicting with unavailability if the
attribute that is making the declaration unavailable is unconditional or it is
for the same base platform. For example, it should be allowed to back deploy a
function on macOS while making that function unavailable for application
extensions on macOS.

Resolves rdar://107291474
@tshortli tshortli added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.9 labels Mar 29, 2023
@tshortli tshortli requested a review from a team as a code owner March 29, 2023 23:25
@tshortli tshortli requested a review from nkcsgexi March 29, 2023 23:26
@tshortli
Copy link
Contributor Author

@swift-ci please test

@tshortli tshortli merged commit 643eb82 into swiftlang:release/5.9 Mar 30, 2023
@tshortli tshortli deleted the relax-back-deployed-unavailability-diagnostic-5.9 branch March 30, 2023 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants