Skip to content

Document (tuple) struct pattern namespace behavior #1925

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
Jul 4, 2025

Conversation

traviscross
Copy link
Contributor

We had not documented what namespaces were used when matching struct and tuple struct patterns. As it turns out, this is a bit nuanced. Let's document the current behavior, describe the nature of this nuance with an example, and note the possible uncertainly about the desirability of this behavior long-term.

cc @ehuss

@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Jul 3, 2025
@traviscross traviscross force-pushed the TC/tuple-struct-pattern-namespaces branch from a41a307 to efba56c Compare July 3, 2025 20:16
@traviscross traviscross marked this pull request as draft July 3, 2025 20:19
@rustbot rustbot removed the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Jul 3, 2025
@traviscross traviscross force-pushed the TC/tuple-struct-pattern-namespaces branch 5 times, most recently from a8117db to 5ac3277 Compare July 3, 2025 20:58
@traviscross traviscross marked this pull request as ready for review July 3, 2025 22:33
@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Jul 3, 2025
We had not documented what namespaces were used when matching struct
and tuple struct patterns.  As it turns out, this is a bit nuanced.
Let's document the current behavior, describe the nature of this
nuance with an example, and note the possible uncertainly about the
desirability of this behavior long-term.
@traviscross traviscross force-pushed the TC/tuple-struct-pattern-namespaces branch from 5ac3277 to a170307 Compare July 3, 2025 23:56
Copy link
Contributor

@ehuss ehuss left a comment

Choose a reason for hiding this comment

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

Thanks!

@ehuss ehuss added this pull request to the merge queue Jul 4, 2025
Merged via the queue into master with commit 9574a86 Jul 4, 2025
5 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Jul 4, 2025
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.

3 participants