Skip to content

[5.9][CSSimplify] Relax isBindable requirements for pack expansion variables #67935

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 3 commits into from
Aug 16, 2023

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Aug 15, 2023

Cherry-pick of #67759


  • Explanation:

If type variable we are about to bind represents a pack
expansion type, allow the binding to happen regardless of
what the \c type is, because contextual type is just a hint
in this situation and type variable would be bound to its
opened type instead.

Resolves: rdar://112617922

xedin added 3 commits August 15, 2023 09:00
…olvePackExpansion`

The type variable should always be one for pack expansion type which
implies that locator always ends at `PackExpansionType`.

(cherry picked from commit 043d2aa)
…extual type

This is effectively a premature optimization. Contextual type might
not be fully resolved yet, so let's give solver a chance to do it for us.

(cherry picked from commit 3dff3e5)
…bles

If type variable we are about to bind represents a pack
expansion type, allow the binding to happen regardless of
what the \c type is, because contextual type is just a hint
in this situation and type variable would be bound to its
opened type instead.

Resolves: rdar://112617922
(cherry picked from commit 27413f5)
@xedin xedin added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.9 labels Aug 15, 2023
@xedin xedin requested a review from hborla August 15, 2023 16:03
@xedin xedin requested a review from a team as a code owner August 15, 2023 16:03
@xedin
Copy link
Contributor Author

xedin commented Aug 15, 2023

@swift-ci please test

@xedin xedin merged commit 506b356 into swiftlang:release/5.9 Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.9
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants