Skip to content

[6.2][TypeChecker] Improve diagnostics for access to actor-isolated values… #81737

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

… outside of the actor

Cherry-pick of #81719


  • Explanation:

    Replaces generic expression is 'async' but is not marked with 'await diagnostic with a tailed one for cases where there is an access to an actor-isolated value outside of its actor without await keyword.

    This makes the diagnostics for async and sync contexts consistent and actually identifies a problem instead of simply pointing out the solution.

  • Main Branch PR: [TypeChecker] Improve diagnostics for access to actor-isolated values… #81719

  • Risk: Low (Diagnostic improvements only).

  • Resolves: rdar://151720646

  • Reviewed By: @hborla

  • Testing: Updated existing tests in the suite.

(cherry picked from commit 7a6ba8e)

… outside of the actor

Replaces generic `expression is 'async' but is not marked with 'await`
diagnostic with a tailed one for cases where there is an access to an
actor-isolated value outside of its actor without `await` keyword.

This makes the diagnostics for async and sync contexts consistent
and actually identifies a problem instead of simply pointing out
the solution.

Resolves: rdar://151720646
(cherry picked from commit 7a6ba8e)
@xedin xedin requested a review from a team as a code owner May 23, 2025 07:06
@xedin xedin added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 labels May 23, 2025
@xedin
Copy link
Contributor Author

xedin commented May 23, 2025

@swift-ci please test

@xedin xedin merged commit 7077ef5 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