Skip to content

Sema: Avoid emitting superfluous resilience diagnostics with MemberImportVisibility #75766

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 Aug 8, 2024

When MemberImportVisibility is enabled, if the import that would bring a member declaration into scope is missing it is diagnosed as an error. The existing resilience diagnostics that would also diagnose the same problem in contexts that are visible in the module interface are therefore superflous with the feature enabled.

…mportVisibility`.

When `MemberImportVisibility` is enabled, if the import that would bring a
member declaration into scope is missing it is diagnosed as an error. The
existing resilience diagnostics that would also diagnose the same problem in
contexts that are visible in the module interface are therefore superflous with
the feature enabled.
@tshortli tshortli force-pushed the superfluous-not-imported-here-diags branch from 85d0b19 to 7e1eac7 Compare August 8, 2024 01:17
@tshortli
Copy link
Contributor Author

tshortli commented Aug 8, 2024

@swift-ci please smoke test

@tshortli tshortli requested a review from xymus August 8, 2024 01:17
@tshortli tshortli merged commit 6e4e111 into swiftlang:main Aug 8, 2024
3 checks passed
@tshortli tshortli deleted the superfluous-not-imported-here-diags branch August 8, 2024 16:20
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.

1 participant