Skip to content

[6.2][CSApply] Don't inject global actor into closure type if it's marked … #81718

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

Conversation

xedin
Copy link
Contributor

@xedin xedin commented May 22, 2025

…as @concurrent

Cherry-pick of #81690


  • Explanation:

    When the attribute is specified explicitly passing a @concurrent closure to a global actor-isolated parameter or contextual type should result in a conversion and closure itself should be nonisolated.

  • Main Branch PR: [CSApply] Don't inject global actor into closure type if it's marked … #81690

  • Risk: Low (Applicable only to explicit use of @concurrent attribute).

  • Resolves: rdar://151797372

  • Reviewed By: @gottesmm

  • Testing: Added new tests to the suite.

(cherry picked from commit efc6efc)

…as `@concurrent`

When the attribute is specified explicitly passing a `@concurrent`
closure to a global actor-isolated parameter or contextual type
should result in a conversion and closure itself should be nonisolated.

Resolves: rdar://151797372
(cherry picked from commit efc6efc)
@xedin xedin requested a review from a team as a code owner May 22, 2025 17:25
@xedin xedin added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 labels May 22, 2025
@xedin
Copy link
Contributor Author

xedin commented May 22, 2025

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented May 23, 2025

@swift-ci please test macOS platform

@xedin xedin merged commit d0d0afb into swiftlang:release/6.2 May 23, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 6.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants