From eb7acc523abad26889c47a8892977fca3efa5979 Mon Sep 17 00:00:00 2001 From: memoryruins Date: Sun, 12 Aug 2018 20:21:09 -0400 Subject: [PATCH] Fix struct_fold macro error --- src/fold.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fold.rs b/src/fold.rs index 08b3d5fd4fa..0efb1f5df58 100644 --- a/src/fold.rs +++ b/src/fold.rs @@ -437,9 +437,9 @@ enum_fold!(ProgramClause[] { Implies(a), ForAll(a) }); enum_fold!(InlineBound[] { TraitBound(a), ProjectionEqBound(a) }); macro_rules! struct_fold { - ($s:ident $([$($tt_args:tt)*])? { $($name:ident),* $(,)* } $($w:tt)*) => { + ($s:ident $([$($tt_args:tt)*])* { $($name:ident),* $(,)* } $($w:tt)*) => { struct_fold! { - @parse_tt_args($($($tt_args)*)?) + @parse_tt_args($($($tt_args)*)*) struct_name($s) parameters() self_args()