Skip to content

[5.9][ConstraintSystem] Reverse direction of ShapeOf constraint #65657

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
May 4, 2023

Conversation

xedin
Copy link
Contributor

@xedin xedin commented May 4, 2023

Cherry-pick of #65625


  • Explanation:

    Changes directionality of the ShapeOf constraint to better fit and fixes one place in simplification logic where ShapeOf was used incorrectly:

    • (NFC change)ShapeOf - First type is the reduced shape of the second type (the pack type).
    • Fix incorrect use of ShapeOf instead of ExplicitGenericArguments.
  • Scope: Expressions that use variadic generics feature.

  • Main Branch PR: [ConstraintSystem] Reverse direction of ShapeOf constraint #65625

  • Resolves: (There are no issues for this discovered via code review).

  • Risk: Extra Low.

  • Reviewed By: @hborla

  • Testing: Added regression test-cases to the suite.

xedin added 2 commits May 4, 2023 09:13
First type is the reduced shape of the second type (the pack type).

(cherry picked from commit fdfedc6)
…ouldn't produce `ShapeOf`

Fix `formUnsolvedConstraint` to use `ExplicitGenericArguments` instead
of `ShapeOf` when first type is not yet fully resolved.

(cherry picked from commit 8d0a977)
@xedin xedin added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.9 labels May 4, 2023
@xedin xedin requested a review from hborla May 4, 2023 16:19
@xedin xedin requested a review from a team as a code owner May 4, 2023 16:19
@xedin
Copy link
Contributor Author

xedin commented May 4, 2023

@swift-ci please test

@xedin xedin merged commit dbbda56 into swiftlang:release/5.9 May 4, 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