Skip to content

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Oct 16, 2025

The existing text was slightly confusing with the way it worded "ref and/or mut", and wasn't quite clear what it was referring to. I pulled that out into a separate sentence. This also adds a sentence to make it very clear that this is a shorthand.

This is somewhat a duplicate of
patterns.destructure.named-field-shorthand, but it seems fine to me to have that.

This also reworks the example. The current example didn't fit this section at all, and it's not entirely clear to me what the original intention was here. Maybe that was intended for the destructuring section? Either way, I just made this example fit this rule.

The existing text was slightly confusing with the way it worded "ref
and/or mut", and wasn't quite clear what it was referring to. I pulled
that out into a separate sentence. This also adds a sentence to make it
very clear that this is a shorthand.

This is somewhat a duplicate of
patterns.destructure.named-field-shorthand, but it seems fine to me to
have that.

This also reworks the example. The current example didn't fit this
section at all, and it's not entirely clear to me what the original
intention was here. Maybe that was intended for the destructuring
section? Either way, I just made this example fit this rule.
@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Oct 16, 2025
@traviscross traviscross added this pull request to the merge queue Oct 16, 2025
Merged via the queue into rust-lang:master with commit 752eab0 Oct 16, 2025
5 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Oct 16, 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