Skip to content

[6.2] AST/Sema: Fix remapping of iOS availability in diagnostics for visionOS #81932

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

@tshortli tshortli commented Jun 3, 2025

  • Explanation: 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.
  • Scope: Affects availability checking diagnostics.
  • Issue/Radar: rdar://146293165
  • Original PR: AST/Sema: Fix remapping of iOS availability in diagnostics for visionOS #81922
  • Risk: Medium. This change alters core availability diagnostic logic.
  • Testing: New test cases.
  • Reviewer: @artemcm

@tshortli tshortli requested a review from a team as a code owner June 3, 2025 05:53
@tshortli tshortli added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 labels Jun 3, 2025
@tshortli
Copy link
Contributor Author

tshortli commented Jun 3, 2025

@swift-ci please test

@tshortli tshortli enabled auto-merge June 3, 2025 05:53
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 force-pushed the visionos-availability-remap-regression-6.2 branch from 617f00b to 5b79f61 Compare June 3, 2025 05:56
@tshortli
Copy link
Contributor Author

tshortli commented Jun 3, 2025

@swift-ci please test

@tshortli tshortli merged commit 5ee5736 into swiftlang:release/6.2 Jun 3, 2025
5 checks passed
@tshortli tshortli deleted the visionos-availability-remap-regression-6.2 branch June 3, 2025 20:31
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 swift 6.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants