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

Accept trailing commas in struct patterns #11075

Merged
merged 1 commit into from
Dec 20, 2013

Conversation

alexcrichton
Copy link
Member

We decided in the 12/10/13 weekly meeting that trailing commas should be
accepted pretty much anywhere. They are currently not allowed in struct
patterns, and this commit adds support for that.

Closes #10392

We decided in the 12/10/13 weekly meeting that trailing commas should be
accepted pretty much anywhere. They are currently not allowed in struct
patterns, and this commit adds support for that.

Closes rust-lang#10392
bors added a commit that referenced this pull request Dec 20, 2013
We decided in the 12/10/13 weekly meeting that trailing commas should be
accepted pretty much anywhere. They are currently not allowed in struct
patterns, and this commit adds support for that.

Closes #10392
bors added a commit that referenced this pull request Dec 20, 2013
We decided in the 12/10/13 weekly meeting that trailing commas should be
accepted pretty much anywhere. They are currently not allowed in struct
patterns, and this commit adds support for that.

Closes #10392
@bors bors closed this Dec 20, 2013
@bors bors merged commit bfb760c into rust-lang:master Dec 20, 2013
@alexcrichton alexcrichton deleted the issue-10392 branch December 22, 2013 04:58
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jul 14, 2023
[`useless_vec`]: use the source span for initializer

Fixes rust-lang#11075.

changelog: [`useless_vec`]: use the source span for the initializer expression when inside of a macro
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.

Comma not allowed after last field in struct destructuring
3 participants