mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
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<()> {
|
||||
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…
Reference in New Issue
Block a user