ast: Reduce size of ExprKind
by boxing fields of ExprKind::Struct
This commit is contained in:
parent
b25d3ba781
commit
d1522b39dd
12 changed files with 48 additions and 28 deletions
|
@ -1873,8 +1873,8 @@ impl<'a> State<'a> {
|
|||
ast::ExprKind::Repeat(ref element, ref count) => {
|
||||
self.print_expr_repeat(element, count, attrs);
|
||||
}
|
||||
ast::ExprKind::Struct(ref path, ref fields, ref rest) => {
|
||||
self.print_expr_struct(path, &fields[..], rest, attrs);
|
||||
ast::ExprKind::Struct(ref se) => {
|
||||
self.print_expr_struct(&se.path, &se.fields, &se.rest, attrs);
|
||||
}
|
||||
ast::ExprKind::Tup(ref exprs) => {
|
||||
self.print_expr_tup(&exprs[..], attrs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue