Skip to content

[6.0] Fix parsing issues related to suppressed conformances / noncopyable generics #72775

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

Conversation

DougGregor
Copy link
Member

@DougGregor DougGregor commented Apr 2, 2024

Implement parser and type-expression folding semantics for invertible
protocols, so that one can write (e.g.) `[any ~Copyable]` as a type
within expression context.

Fixes rdar://125201146.

(cherry picked from commit 7eb964c)
…them

Ensure that we're properly parsing suppressed-conformance constraints
in expression contents and in metatypes. This allows types like `any
~Copyable` in expression context as well as types like `any
~Copyable.Type`.

While we're here, ensure that existentials that involve
suppressed-conformance constraints are spelled with `any`.

Fixes rdar://123728228.

(cherry picked from commit 533a744)
(cherry picked from commit caf78cd)
@DougGregor DougGregor requested a review from a team as a code owner April 2, 2024 18:36
@DougGregor
Copy link
Member Author

swiftlang/swift-syntax#2585

@swift-ci please test

@DougGregor DougGregor merged commit c83bc48 into swiftlang:release/6.0 Apr 3, 2024
@DougGregor DougGregor deleted the parse-suppressed-constraints-and-ownership-params-6.0 branch April 3, 2024 03:47
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