Permit trailing commas in macro invocations#6
Permit trailing commas in macro invocations#6myrrlyn wants to merge 1 commit intomurarth:masterfrom myrrlyn:master
Conversation
This commit uses the `?` operator to support optional trailing commas in macro calls without requiring the call to use the panic-message arms. The `?` macro operator was stabilized in `1.32` for the 2018 edition, and `1.37` for the 2015 edition. Applying this commit requires raising the crate MSRV to one of these two versions; for the lower, the crate must be explicitly set to the `edition = "2018"` key in its manifest.
|
I wrote this patch because I noticed that my As noted, it forces an MSRV. Please feel completely free to reject the PR if this is unacceptable. |
|
I have to say, I'm not persuaded that there's a good reason to accept this proposed change and I'm inclined to reject it. It seems to me that |
|
My motivation for submitting this change was predicated solely on the fact that all the |
|
I've stumbled upon this issue recently. I have to notice that the |
|
I'm glad I found this issue because I just couldn't work out the problem from the macro expansion. Trailing commas are very common and the error message doesn't help at all. This was fixed for |
This commit uses the
?operator to support optional trailing commas inmacro calls without requiring the call to use the panic-message arms.
The
?macro operator was stabilized in1.32for the 2018 edition,and
1.37for the 2015 edition. Applying this commit requires raisingthe crate MSRV to one of these two versions; for the lower, the crate
must be explicitly set to the
edition = "2018"key in its manifest.