libsyntax: Output where clauses in pretty printer for structs.
This commit is contained in:
parent
ac7dc03a52
commit
ab1bdde536
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user