Skip to content
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

Remove attributes from struct field rest patterns #1736

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

Skepfyr
Copy link
Contributor

@Skepfyr Skepfyr commented Feb 15, 2025

rustc never properly supported attributes in this position so this just removes them entirely.

See rustc change at: rust-lang/rust#136490

I could inline the StructPatternEtCetera but it felt slightly more consistent with the rest of the document to leave it separate.
I don't think there are any other changes required here as these attributes don't appear to be mentioned anywhere in the text.

rustc never properly supported attributes in this position so this just
removes them entirely.

See rustc change at: rust-lang/rust#136490
@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Feb 15, 2025
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! Will merge after rust-lang/rust#136490

@ehuss ehuss added this pull request to the merge queue Feb 18, 2025
Merged via the queue into rust-lang:master with commit 708f07f Feb 18, 2025
5 checks passed
@Skepfyr Skepfyr deleted the no-field-rest-pattern-attrs branch February 18, 2025 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: The marked PR is awaiting review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants