commit | e4606333ac8d04f280ee5033fbd9286267ede735 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Tue Oct 25 21:57:41 2016 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Tue Oct 25 21:57:41 2016 -0700 |
tree | caacd2f8cf1a345d071739e078b14285cc5a953f | |
parent | b3f55907f4bd74f67d4b4c61fd4b99bf10a7db27 [diff] [blame] |
Fix printing of trait generic parameters
diff --git a/src/item.rs b/src/item.rs index 07e41af..cf96c2a 100644 --- a/src/item.rs +++ b/src/item.rs
@@ -1103,11 +1103,11 @@ unsafety.to_tokens(tokens); tokens.append("trait"); self.ident.to_tokens(tokens); + generics.to_tokens(tokens); if !bound.is_empty() { tokens.append(":"); tokens.append_separated(bound, "+"); } - generics.to_tokens(tokens); generics.where_clause.to_tokens(tokens); tokens.append("{"); tokens.append_all(items);