Skip to content

Conversation

@DougGregor
Copy link
Member

The $generator variable we create for the async for..in loop is nonisolated(unsafe), so ensure that we generate an unsafe expression when we use it. This uncovered some inconsistencies in how we do unsafe checking for for..in loops, so fix those.

Fixes rdar://154775389.

The `$generator` variable we create for the async for..in loop is
`nonisolated(unsafe)`, so ensure that we generate an `unsafe`
expression when we use it. This uncovered some inconsistencies in how
we do `unsafe` checking for for..in loops, so fix those.

Fixes rdar://154775389.
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor DougGregor merged commit 3542b1d into swiftlang:main Jul 10, 2025
3 checks passed
@DougGregor DougGregor deleted the unsafe-for-in-fixes branch July 10, 2025 06:16
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.

1 participant