Skip to content

[6.0][Concurrency] CaseIterable synthesized allCases must be nonisolated #74255

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

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Jun 10, 2024

Description: allCases synthesized by CaseIterable should be nonisolated, as otherwise it'll conflict in isolation with global actor isolated enums.
Scope/Impact: Global actor isolated enums with CaseIterable today don't compile
Risk: Low, adds nonisolated to allCases
Testing: CI testing
Reviewed by: @DougGregor

Original PR: #74254
Radar: rdar://127968265

@ktoso
Copy link
Contributor Author

ktoso commented Jun 10, 2024

@swift-ci please test

@ktoso ktoso changed the title Pick wip caseiterable nonisolated [Concurrency] CaseIterable synthesized allCases must be nonisolated Jun 10, 2024
@ktoso ktoso changed the title [Concurrency] CaseIterable synthesized allCases must be nonisolated [6.0][Concurrency] CaseIterable synthesized allCases must be nonisolated Jun 10, 2024
@ktoso ktoso force-pushed the pick-wip-caseiterable-nonisolated branch from a4bf8ac to 5c5acac Compare June 11, 2024 03:45
@ktoso
Copy link
Contributor Author

ktoso commented Jun 11, 2024

@swift-ci please test

@ktoso ktoso merged commit 2b0698b into swiftlang:release/6.0 Jun 11, 2024
@ktoso ktoso deleted the pick-wip-caseiterable-nonisolated branch June 11, 2024 09:28
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