Skip to content

AST/Sema: Fix remapping of iOS availability in diagnostics for visionOS #81922

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

Merged

Conversation

tshortli
Copy link
Contributor

@tshortli tshortli commented Jun 3, 2025

When compiling for visionOS, iOS availability attributes are remapped into the visionOS availability domain automatically. While the version remapping was being performed correctly, there was a regression that caused the platform name to be printed incorrectly in many diagnostics. Whenever an iOS version is remapped to a visionOS version, availability diagnostics will now present those versions as visionOS versions instead of iOS versions.

Resolves rdar://146293165.

When compiling for visionOS, iOS availability attributes are remapped into the
visionOS availability domain automatically. While the version remapping was
being performed correctly, there was a regression that caused the platform name
to be printed incorrectly in many diagnostics. Whenever an iOS version is
remapped to a visionOS version, availability diagnostics will now present
those versions as visionOS versions instead of iOS versions.

Resolves rdar://146293165.
@tshortli tshortli requested a review from artemcm June 3, 2025 00:56
@tshortli
Copy link
Contributor Author

tshortli commented Jun 3, 2025

@swift-ci please test

@tshortli tshortli enabled auto-merge June 3, 2025 05:18
@tshortli tshortli merged commit adedf15 into swiftlang:main Jun 3, 2025
4 of 5 checks passed
@tshortli tshortli deleted the visionos-availability-remap-regression branch June 5, 2025 22:09
tshortli added a commit to tshortli/swift that referenced this pull request Jun 6, 2025
The version remapping for `@backDeployed` regressed due to a bug introduced by
swiftlang#81922.

Also, fix some visionOS tests that have gotten out of date because we don't
seem to be running them in CI.

rdar://152542983
tshortli added a commit to tshortli/swift that referenced this pull request Jun 6, 2025
The version remapping for `@backDeployed` regressed due to a bug introduced by
swiftlang#81922.

Also, fix some visionOS tests that have gotten out of date because we don't
seem to be running them in CI.

Resolves rdar://152542983.
tshortli added a commit to tshortli/swift that referenced this pull request Jun 6, 2025
The version remapping for `@backDeployed` regressed due to a bug introduced by
swiftlang#81922.

Also, fix some visionOS tests that have gotten out of date because we don't
seem to be running them in CI.

Resolves rdar://152542983.
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