Skip to content

[CSOptimizer] MemberImportVisibility: Don't consider overloads that c… #79004

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
merged 1 commit into from
Jan 29, 2025

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jan 29, 2025

…ome from implicit imports

Ignore declarations that come from implicitly imported modules when MemberImportVisibility
feature is enabled otherwise we might end up favoring an overload that would be diagnosed as unavailable later.

Resolves: rdar://143582881

@xedin xedin requested a review from tshortli January 29, 2025 08:21
@xedin
Copy link
Contributor Author

xedin commented Jan 29, 2025

Reproducer is from #78999, thanks @tshortli !

@xedin
Copy link
Contributor Author

xedin commented Jan 29, 2025

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Jan 29, 2025

@swift-ci please test source compatibility

@tshortli
Copy link
Contributor

The source compatibility suite failures are unrelated. I've fixed them here: swift-server/async-http-client#804

…ome from implicit imports

Ignore declarations that come from implicitly imported modules
when `MemberImportVisibility` feature is enabled otherwise
we might end up favoring an overload that would be diagnosed
as unavailable later.

Resolves: rdar://143582881
@xedin
Copy link
Contributor Author

xedin commented Jan 29, 2025

@swift-ci please smoke test

@xedin xedin merged commit 654d39b into swiftlang:main Jan 29, 2025
3 checks passed
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