Skip to content

[Concurrency] InferSendableFromCaptures: Rework check to delay lookup #83210

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
Jul 23, 2025

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jul 21, 2025

The current implementation of the check accounts only for the overload choices present in the initial lookup but for some situations, like bridged or optional base types, performMemberLookup uses a secondary lookup as well, results of which are ignored.

Let's fold the check into addChoice instead and set the the flag there to make sure that all of the choices are considered.

Resolves: rdar://143586718

The current implementation of the check accounts only for the overload
choices present in the initial lookup but for some situations, like
bridged or optional base types, `performMemberLookup` uses a secondary
lookup as well, results of which are ignored.

Let's fold the check into `addChoice` instead and set the the flag there
to make sure that all of the choices are considered.

Resolves: rdar://143586718
@xedin xedin requested review from hborla and slavapestov as code owners July 21, 2025 17:38
@xedin
Copy link
Contributor Author

xedin commented Jul 21, 2025

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Jul 22, 2025

@swift-ci please test macOS platform

@xedin
Copy link
Contributor Author

xedin commented Jul 22, 2025

@swift-ci please test Windows platform

@xedin xedin merged commit 24210cf into swiftlang:main Jul 23, 2025
5 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