From 5e5cc6749eb16f2820fe291582ded0b035667612 Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Fri, 5 Dec 2014 01:10:22 -0800 Subject: 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. --- src/libsyntax/ast.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/ast.rs') diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 0c8c17b080b..d4932fbb5f1 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -607,7 +607,7 @@ pub enum Stmt_ { /// Expr with trailing semi-colon (may have any type): StmtSemi(P, NodeId), - StmtMac(Mac, MacStmtStyle), + StmtMac(P, MacStmtStyle), } #[deriving(Clone, Copy, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Show)] -- cgit 1.4.1-3-g733a5