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/parse/mod.rs | |
| parent | 80991bb578329ca921fdc910d9b6b064e8f521d2 (diff) | |
| download | rust-a9c4b18b18bd3f5fd4a4c20489f37c52d106fc81.tar.gz rust-a9c4b18b18bd3f5fd4a4c20489f37c52d106fc81.zip | |
Box Block, fn_decl, variant and Ty in the AST, as they were inflating critical enum sizes.
Diffstat (limited to 'src/libsyntax/parse/mod.rs')
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index 8fbd152543d..a1ccf4771a7 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -654,10 +654,10 @@ mod test { @ast::item{ident:str_to_ident("a"), attrs:~[], id: ast::DUMMY_NODE_ID, - node: ast::item_fn(ast::fn_decl{ + node: ast::item_fn(ast::P(ast::fn_decl{ inputs: ~[ast::arg{ - ty: ast::Ty{id: ast::DUMMY_NODE_ID, - node: ast::ty_path(ast::Path{ + ty: ast::P(ast::Ty{id: ast::DUMMY_NODE_ID, + node: ast::ty_path(ast::Path{ span:sp(10,13), global:false, segments: ~[ @@ -670,7 +670,7 @@ mod test { ], }, None, ast::DUMMY_NODE_ID), span:sp(10,13) - }, + }), pat: @ast::Pat { id: ast::DUMMY_NODE_ID, node: ast::PatIdent( @@ -693,19 +693,19 @@ mod test { }, id: ast::DUMMY_NODE_ID }], - output: ast::Ty{id: ast::DUMMY_NODE_ID, - node: ast::ty_nil, - span:sp(15,15)}, // not sure + output: ast::P(ast::Ty{id: ast::DUMMY_NODE_ID, + node: ast::ty_nil, + span:sp(15,15)}), // not sure cf: ast::return_val, variadic: false - }, + }), ast::impure_fn, abi::AbiSet::Rust(), ast::Generics{ // no idea on either of these: lifetimes: opt_vec::Empty, ty_params: opt_vec::Empty, }, - ast::Block { + ast::P(ast::Block { view_items: ~[], stmts: ~[@Spanned{ node: ast::StmtSemi(@ast::Expr{ @@ -733,7 +733,7 @@ mod test { id: ast::DUMMY_NODE_ID, rules: ast::DefaultBlock, // no idea span: sp(15,21), - }), + })), vis: ast::inherited, span: sp(0,21)})); } |
