Skip to content

Conversation

@xedin
Copy link
Contributor

@xedin xedin commented Nov 10, 2025

  • Fix printing of nonisolated(nonsending) in parameter type positions

    Printing shouldn't rely on parameter declaration bit because it only
    works in cases when there is an explicit nonisolated(nonsending)
    modifier on the type.

    Always print nonisolated(nonsending) before sending, @escaping
    and other declaration attributes/modifiers to avoid parsing issues.

  • Make sure that nonisolated(nonsending) works together with @autoclosure

  • Remove isCallerIsolated bit from ParamDecl as obsolete.

Resolves: rdar://164267736

…itions

Printing shouldn't rely on parameter declaration bit because it only
works in cases when there is an explicit `nonisolated(nonsending)`
modifier on the type.

Always print `nonisolated(nonsending)` before `sending`, `@escaping`
and other declaration attributes/modifiers to avoid parsing issues.

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

xedin commented Nov 10, 2025

@swift-ci please test

This was used primarily by the printer and doesn't work when
`nonisolated(nonsending)` is inferred, so let's remove it.
@xedin
Copy link
Contributor Author

xedin commented Nov 12, 2025

@swift-ci please test

@xedin xedin merged commit 30b207e into swiftlang:main Nov 12, 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