libsyntax: Output where clauses in pretty printer for structs.
This commit is contained in:
parent
ac7dc03a52
commit
ab1bdde536
1 changed files with 1 additions and 0 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue