Skip to content

[Concurrency] NonisolatedNonsendingByDefault: Infer nonisolated(nonsending) on declaration with special special semantics #83164

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 2 commits into from
Jul 18, 2025

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jul 18, 2025

Covers both withoutActuallyEscaping and _openExistential.
Applies nonisolated(nonsending) on the outer type as well as
do: and body: parameters.

Resolves: rdar://156115100

xedin added 2 commits July 17, 2025 17:35
…sending)` to `withoutActuallyEscaping`

`withoutActuallyEscaping` is type-checked in a special way which
means that we need to explicitly inject `nonisolated(nonsending)`
isolation when forming a reference to this builtin.
…sending)` to `_openExistential`

`_openExistential` is type-checked in a special way which
means that we need to explicitly inject `nonisolated(nonsending)`
isolation when forming a reference to this builtin.
@xedin
Copy link
Contributor Author

xedin commented Jul 18, 2025

@swift-ci please test

@xedin xedin merged commit 7a7aefd into swiftlang:main Jul 18, 2025
5 checks passed
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