1
Fork 0

Use ? in some macros

This commit is contained in:
Taiki Endo 2019-02-24 21:59:44 +09:00
parent 7f19f161f2
commit 871910a2c6
10 changed files with 29 additions and 29 deletions

View file

@ -69,7 +69,7 @@ impl FromInternal<(TreeAndJoint, &'_ ParseSess, &'_ mut Vec<Self>)>
};
macro_rules! tt {
($ty:ident { $($field:ident $(: $value:expr)*),+ $(,)* }) => (
($ty:ident { $($field:ident $(: $value:expr)*),+ $(,)? }) => (
TokenTree::$ty(self::$ty {
$($field $(: $value)*,)*
span,