Skip to content

[Concurrency] Infer @preconcurrency @MainActor in default main acto… #81627

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

Conversation

xedin
Copy link
Contributor

@xedin xedin commented May 19, 2025

…r mode for language modes < 6

@MainActor errors are hard errors, even in minimal concurrency checking in Swift 5 mode. When users set the default isolation to main actor, we should infer @preconcurrency @MainActor in language modes < 6 to get the right diagnostic staging behavior.

Resolves: rdar://151029517

…r mode for language modes < 6

`@MainActor` errors are hard errors, even in minimal concurrency checking in Swift 5 mode.
When users set the default isolation to main actor, we should infer `@preconcurrency @MainActor`
in language modes < 6 to get the right diagnostic staging behavior.

Resolves: rdar://151029517
@xedin
Copy link
Contributor Author

xedin commented May 19, 2025

@swift-ci please test

@xedin xedin merged commit 37e1fc8 into swiftlang:main May 20, 2025
5 checks passed
hamishknight added a commit to hamishknight/swift that referenced this pull request May 22, 2025
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