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/ty.rs b/src/ty.rs index f9e3a2d..f52fb19 100644 --- a/src/ty.rs +++ b/src/ty.rs
@@ -463,6 +463,7 @@ cond!(!lifetimes.is_empty() || !types.is_empty(), punct!(",")), separated_nonempty_list!(punct!(","), type_binding) )) >> + cond!(!lifetimes.is_empty() || !types.is_empty() || !bindings.is_empty(), option!(punct!(","))) >> punct!(">") >> (PathSegment { ident: id.unwrap_or_else(|| "".into()),