Skip to content

[CSSimplify] Narrow down tuple wrapping for pack expansion matching #82467

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 1 commit into from
Jun 25, 2025

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jun 24, 2025

Follow-up for #82326.

The optional injection is only viable is the wrapped type is not yet resolved, otherwise it's safe to wrap the optional.

Resolves: rdar://154221449

Follow-up for swiftlang#82326.

The optional injection is only viable is the wrapped type is
not yet resolved, otherwise it's safe to wrap the optional.
@xedin xedin requested a review from hborla as a code owner June 24, 2025 22:34
@xedin xedin requested a review from hamishknight June 24, 2025 22:34
@xedin
Copy link
Contributor Author

xedin commented Jun 24, 2025

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Jun 24, 2025

@swift-ci please build toolchain macOS

@xedin
Copy link
Contributor Author

xedin commented Jun 25, 2025

@swift-ci please clean test Linux platform

@xedin
Copy link
Contributor Author

xedin commented Jun 25, 2025

@swift-ci please test Linux platform

2 similar comments
@xedin
Copy link
Contributor Author

xedin commented Jun 25, 2025

@swift-ci please test Linux platform

@xedin
Copy link
Contributor Author

xedin commented Jun 25, 2025

@swift-ci please test Linux platform

@xedin
Copy link
Contributor Author

xedin commented Jun 25, 2025

@swift-ci please smoke test Linux platform

guard let _ = try? test1(1, 2, v) else { return } // Ok

guard let _ = try? test2(1, 2, 3) else { return } // Ok
guard let _ = try? test2(1, 2, v) else { return } // Ok
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Presumably this means that this also fails if v is Any?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this is an existing problem since we cannot decide what to do in this case early on.

@xedin
Copy link
Contributor Author

xedin commented Jun 25, 2025

swiftlang/swift-package-manager#8872
@swift-ci please test Linux platform

@xedin
Copy link
Contributor Author

xedin commented Jun 25, 2025

swiftlang/swift-package-manager#8874
@swift-ci please test Linux platform

@xedin xedin merged commit 0999792 into swiftlang:main Jun 25, 2025
6 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