Slash the ast::Stmt type from 104 to 24 bytes.

(on platforms with 64-bit pointers.)

The StmtMac variant is rather large and also fairly rare, so let's
optimise the common case.
This commit is contained in:
Huon Wilson
2014-12-05 01:10:22 -08:00
parent 06f25b7e99
commit 5e5cc6749e
6 changed files with 6 additions and 6 deletions

View File

@@ -3940,7 +3940,7 @@ impl<'a> Parser<'a> {
expr = Some(
self.mk_mac_expr(span.lo,
span.hi,
m.node));
m.and_then(|x| x.node)));
}
_ => {
stmts.push(P(Spanned {