Skip to content

AST: Only apply MemberImportVisibility to lookups from the main module #78876

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

MemberImportVisibility rules should only apply to source code in the main module. The rules were being applied when resolving witnesses for synthesized Hashable conformances on CF types imported by ClangImporter, which caused the lookups to fail and bad conformances to be generated.

Resolves #78870 and rdar://142433039.

@tshortli
Copy link
Contributor Author

@swift-ci please test

@xedin
Copy link
Contributor

xedin commented Jan 24, 2025

@swift-ci please test source compatibility

MemberImportVisibility rules should only apply to source code in the main
module. The rules were being applied when resolving witnesses for synthesized
Hashable conformances on CF types imported by ClangImporter, which caused the
lookups to fail and bad conformances to be generated.

Resolves swiftlang#78870 and rdar://142433039.
@tshortli tshortli force-pushed the cfobject-hashable-member-import-visibility branch from d9d7c99 to 0b0d2e9 Compare January 24, 2025 05:11
@tshortli
Copy link
Contributor Author

@swift-ci please test

@tshortli
Copy link
Contributor Author

@swift-ci please test source compatibility

@xedin
Copy link
Contributor

xedin commented Jan 24, 2025

@swift-ci please test Windows platform

@tshortli tshortli enabled auto-merge January 24, 2025 18:28
@tshortli
Copy link
Contributor Author

@swift-ci please test Windows

@tshortli tshortli merged commit 98a7c54 into swiftlang:main Jan 24, 2025
7 checks passed
@tshortli tshortli deleted the cfobject-hashable-member-import-visibility branch January 28, 2025 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants