commit | 82a47d5c77aecebef17153870a0a8ae636614964 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sun Oct 30 13:01:38 2016 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Sun Oct 30 13:01:38 2016 -0700 |
tree | 3aa7bd37aa64f765bbbd69d2b64e27351f004d93 | |
parent | a1e8c5f4a4d33bcd2f944daa7d6ea1bdcce61ca2 [diff] [blame] |
Allow trailing commas inside generics
diff --git a/src/generics.rs b/src/generics.rs index 6f89adb..99165c4 100644 --- a/src/generics.rs +++ b/src/generics.rs
@@ -165,6 +165,7 @@ cond!(!lifetimes.is_empty(), punct!(",")), separated_nonempty_list!(punct!(","), ty_param) )) >> + cond!(!lifetimes.is_empty() || !ty_params.is_empty(), option!(punct!(","))) >> punct!(">") >> (lifetimes, ty_params) )