diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2013-12-01 00:00:39 +0200 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2013-12-01 00:00:39 +0200 |
| commit | a9c4b18b18bd3f5fd4a4c20489f37c52d106fc81 (patch) | |
| tree | cbc704d0832866ca7c3856d0720f051eb526c7fa /src/libsyntax/ext/tt | |
| parent | 80991bb578329ca921fdc910d9b6b064e8f521d2 (diff) | |
Box Block, fn_decl, variant and Ty in the AST, as they were inflating critical enum sizes.
Diffstat (limited to 'src/libsyntax/ext/tt')
| -rw-r--r-- | src/libsyntax/ext/tt/macro_parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ext/tt/macro_parser.rs b/src/libsyntax/ext/tt/macro_parser.rs index 3da2eac1a3d..a450bfeccfe 100644 --- a/src/libsyntax/ext/tt/macro_parser.rs +++ b/src/libsyntax/ext/tt/macro_parser.rs @@ -432,11 +432,11 @@ pub fn parse_nt(p: &Parser, name: &str) -> nonterminal { Some(i) => token::nt_item(i), None => p.fatal("expected an item keyword") }, - "block" => token::nt_block(~p.parse_block()), + "block" => token::nt_block(p.parse_block()), "stmt" => token::nt_stmt(p.parse_stmt(~[])), "pat" => token::nt_pat(p.parse_pat()), "expr" => token::nt_expr(p.parse_expr()), - "ty" => token::nt_ty(~p.parse_ty(false /* no need to disambiguate*/)), + "ty" => token::nt_ty(p.parse_ty(false /* no need to disambiguate*/)), // this could be handled like a token, since it is one "ident" => match *p.token { token::IDENT(sn,b) => { p.bump(); token::nt_ident(~sn,b) } |
