about summary refs log tree commit diff
path: root/src/libsyntax/ast.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-12-29 13:32:19 +0000
committerbors <bors@rust-lang.org>2014-12-29 13:32:19 +0000
commit3dcc409fac18a258ba2a8af4345d9566ec8eebad (patch)
tree140cd42aa68752ae7760bf9f2765bf1ff8835189 /src/libsyntax/ast.rs
parent25fb12b8a5411901675ede6b147bbc6c0b7437b7 (diff)
parent91db254c81f3c90d5d9d8b5db2660a918efef8bb (diff)
downloadrust-3dcc409fac18a258ba2a8af4345d9566ec8eebad.tar.gz
rust-3dcc409fac18a258ba2a8af4345d9566ec8eebad.zip
auto merge of #19549 : huonw/rust/middle-ty-2, r=nikomatsakis
This takes building `librustc/lib.rs` from using 696 MB to 588 (`rustc --no-trans`), and 1.99 GB to 1.87 (`rustc -O`). It also reduces `sty` down to 32 bytes on platforms with 64-bit pointers, at the expense of some more side-tables in `ctxt`. I'm sure there's more gains to be had from reducing the size of the side tables (e.g. by making the actual things they're storing smaller).

r? @nikomatsakis 
Diffstat (limited to 'src/libsyntax/ast.rs')
-rw-r--r--src/libsyntax/ast.rs2
1 files changed, 1 insertions, 1 deletions
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<Expr>, NodeId),
 
-    StmtMac(Mac, MacStmtStyle),
+    StmtMac(P<Mac>, MacStmtStyle),
 }
 
 #[deriving(Clone, Copy, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Show)]