Skip to content

[6.2][Concurrency] Diagnose loss of global actor isolation in async functi… #81577

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 19, 2025

Conversation

xedin
Copy link
Contributor

@xedin xedin commented May 16, 2025

…on conversions

Cherry-pick of #81418


  • Explanation:
    Perform Sendable checking on parameter/result of the function type when conversion between asynchronous functions results in a loss of global actor isolation attribute because access would result in data crossing an isolation boundary.

    This is a warning until Swift language mode 6.

  • Main Branch PR: [Concurrency] Diagnose loss of global actor isolation in async functi… #81418

  • Risk: Medium (All new diagnostics are downgraded to warnings but there could be existing code with Swift 6 mode that uses constructs that would produce new errors).

  • Reviewed By: @hborla

  • Resolves: rdar://130168104

  • Testing: Added new tests to the suite.

(cherry picked from commit a058ffc)

…on conversions

Perform `Sendable` checking on parameter/result of the function
type when conversion between asynchroneous functions results in
a loss of global actor isolation attribute because access would
result in data crossing an isolation boundary.

This is a warning until Swift language mode 6.

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

xedin commented May 16, 2025

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented May 17, 2025

@swift-ci please test Windows platform

@xedin xedin merged commit b923bf4 into swiftlang:release/6.2 May 19, 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