Skip to content

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

Merged
xedin merged 1 commit into
swiftlang:mainfrom
xedin:swift-testing-troubles
Jun 25, 2025
Merged

[CSSimplify] Narrow down tuple wrapping for pack expansion matching#82467
xedin merged 1 commit into
swiftlang:mainfrom
xedin:swift-testing-troubles

Conversation

@xedin

@xedin xedin commented Jun 24, 2025

Copy link
Copy Markdown
Contributor

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

xedin commented Jun 24, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci please test

@xedin

xedin commented Jun 24, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci please build toolchain macOS

@xedin

xedin commented Jun 25, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci please clean test Linux platform

@xedin

xedin commented Jun 25, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci please test Linux platform

2 similar comments
@xedin

xedin commented Jun 25, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci please test Linux platform

@xedin

xedin commented Jun 25, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci please test Linux platform

@xedin

xedin commented Jun 25, 2025

Copy link
Copy Markdown
Contributor Author

@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
Copy Markdown
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
Copy Markdown
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

xedin commented Jun 25, 2025

Copy link
Copy Markdown
Contributor Author

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

@xedin

xedin commented Jun 25, 2025

Copy link
Copy Markdown
Contributor Author

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