Skip to content

Commit

Permalink
libsyntax: Output where clauses in pretty printer for structs.
Browse files Browse the repository at this point in the history
  • Loading branch information
luqmana committed Dec 14, 2014
1 parent ac7dc03 commit ab1bdde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libsyntax/print/pprust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,7 @@ impl<'a> State<'a> {
span: codemap::Span) -> IoResult<()> {
try!(self.print_ident(ident));
try!(self.print_generics(generics));
try!(self.print_where_clause(generics));
if ast_util::struct_def_is_tuple_like(struct_def) {
if !struct_def.fields.is_empty() {
try!(self.popen());
Expand Down

0 comments on commit ab1bdde

Please sign in to comment.