Skip to content

Conversation

@lifthrasiir
Copy link
Contributor

Fixes #12910.

Copy link
Member

Choose a reason for hiding this comment

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

In order to prevent duplication, could you change this to:

($($e:expr),+,) => (vec!($($e),+))

Copy link
Member

Choose a reason for hiding this comment

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

This can also be written as `$($e:expr,)+

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, I thought it is less confusing in this way. Is there any non-cosmetic downside (e.g. macro invocation parser does not like it)?

bors added a commit that referenced this pull request Apr 8, 2014
Jarcho pushed a commit to Jarcho/rust that referenced this pull request Aug 24, 2024
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.

vec!() does not handle a trailing comma

4 participants