Box Block, fn_decl, variant and Ty in the AST, as they were inflating critical enum sizes.

This commit is contained in:
Eduard Burtescu
2013-12-01 00:00:39 +02:00
parent 80991bb578
commit a9c4b18b18
60 changed files with 623 additions and 640 deletions

View File

@@ -9,7 +9,7 @@
// except according to those terms.
use ast;
use ast::{Name, Mrk};
use ast::{P, Name, Mrk};
use ast_util;
use parse::token;
use util::interner::StrInterner;
@@ -101,11 +101,11 @@ pub enum Token {
/// For interpolation during macro expansion.
pub enum nonterminal {
nt_item(@ast::item),
nt_block(~ast::Block),
nt_block(P<ast::Block>),
nt_stmt(@ast::Stmt),
nt_pat( @ast::Pat),
nt_expr(@ast::Expr),
nt_ty( ~ast::Ty),
nt_ty( P<ast::Ty>),
nt_ident(~ast::Ident, bool),
nt_attr(@ast::Attribute), // #[foo]
nt_path(~ast::Path),