Skip to content

[6.2] AST/Sema: Make MemberImportVisibility a migratable feature #81903

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 2, 2025

  • Explanation: The migration to MemberImportVisibility can be performed mechanically by adding missing import declarations, so offer automatic migration for the feature.
  • Scope: Enables to opt-in to automatic migration to the upcoming MemberImportVisibility feature.
  • Issue/Radar: rdar://151931597
  • Original PR: AST/Sema: Make MemberImportVisibility a migratable feature #81751
  • Risk: Low. The new migration mode is opt-in and the changes shouldn't have any effect without enabling the new mode.
  • Testing: New compiler tests.
  • Reviewer: @AnthonyLatsis @xedin @DougGregor

tshortli added 4 commits June 2, 2025 07:27
The was never invoked because inaccessibility due to SPI protection level is
always diagnosed before missing imports are diagnosed. The functionality could
therefore not be tested and should be removed.
…ItLoc()`.

For clarity, it should just take a `SourceFile`.
Don't skip checking if a feature is enabled for migration when the feature also
has an associated language version.
The migration to `MemberImportVisibility` can be performed mechanically by
adding missing import declarations, so offer automatic migration for the
feature.

Resolves rdar://151931597.
@tshortli tshortli requested a review from a team as a code owner June 2, 2025 14:32
@tshortli
Copy link
Contributor Author

tshortli commented Jun 2, 2025

@swift-ci please test

@tshortli tshortli enabled auto-merge June 2, 2025 14:32
@tshortli tshortli merged commit f45edab into swiftlang:release/6.2 Jun 2, 2025
5 checks passed
@tshortli tshortli deleted the migratable-member-import-visibility-6.2 branch June 2, 2025 23:50
@tshortli tshortli added swift 6.2 🍒 release cherry pick Flag: Release branch cherry picks labels Jun 3, 2025
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