Skip to content

[Concurrency] Flip the implicitly async select in a concurrency error. #75578

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 31, 2024

Conversation

hborla
Copy link
Member

@hborla hborla commented Jul 31, 2024

This diagnostic was presenting "implicitly async" for explicitly async calls, and vice versa, because the select was incorrect. The caller is passing apply->isImplicitlyAsync(), and true selects the second option.

Resolves #74472

@hborla
Copy link
Member Author

hborla commented Jul 31, 2024

@swift-ci please smoke test

@hborla hborla force-pushed the correct-implicit-async-diagnostic branch from f686eaf to ac96aee Compare July 31, 2024 05:14
@hborla
Copy link
Member Author

hborla commented Jul 31, 2024

@swift-ci please smoke test

This diagnostic was presenting "implicitly async" for explicitly async calls,
and vice versa, because the `select` was incorrect.
@hborla hborla force-pushed the correct-implicit-async-diagnostic branch from ac96aee to d40663d Compare July 31, 2024 13:46
@hborla hborla requested a review from kavon as a code owner July 31, 2024 13:46
@hborla
Copy link
Member Author

hborla commented Jul 31, 2024

@swift-ci please smoke test

@hborla
Copy link
Member Author

hborla commented Jul 31, 2024

@swift-ci please smoke test Linux

@hborla hborla merged commit 9c94192 into swiftlang:main Jul 31, 2024
3 checks passed
@hborla hborla deleted the correct-implicit-async-diagnostic branch July 31, 2024 21:33
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.

This diagnostic tells me an explicitly async call is implicit
2 participants