libsyntax: Output where clauses in pretty printer for structs.

This commit is contained in:
Luqman Aden 2014-12-14 00:51:42 -05:00
parent ac7dc03a52
commit ab1bdde536

View File

@ -1070,6 +1070,7 @@ impl<'a> State<'a> {
span: codemap::Span) -> IoResult<()> { span: codemap::Span) -> IoResult<()> {
try!(self.print_ident(ident)); try!(self.print_ident(ident));
try!(self.print_generics(generics)); try!(self.print_generics(generics));
try!(self.print_where_clause(generics));
if ast_util::struct_def_is_tuple_like(struct_def) { if ast_util::struct_def_is_tuple_like(struct_def) {
if !struct_def.fields.is_empty() { if !struct_def.fields.is_empty() {
try!(self.popen()); try!(self.popen());