diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2011-07-06 19:00:00 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2011-07-07 12:53:17 -0700 |
| commit | 0e2fff53375eba748b6d6727f69a2560f96bc8ec (patch) | |
| tree | 0c7e27b7d5cf9fe41a1fc00cdbcbf87baf71368f /src/comp/front/test.rs | |
| parent | bbcbaa6601a56c543f9200ce3bc047c366eff3ed (diff) | |
| download | rust-0e2fff53375eba748b6d6727f69a2560f96bc8ec.tar.gz rust-0e2fff53375eba748b6d6727f69a2560f96bc8ec.zip | |
rustc: Change lots of AST nodes to use interior vectors
Diffstat (limited to 'src/comp/front/test.rs')
| -rw-r--r-- | src/comp/front/test.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/comp/front/test.rs b/src/comp/front/test.rs index aae0af12536..1f910575e1f 100644 --- a/src/comp/front/test.rs +++ b/src/comp/front/test.rs @@ -71,14 +71,14 @@ fn mk_main(&test_ctxt cx) -> @ast::item { auto ret_ty = @rec(node=ast::ty_nil, span=rec(lo=0u, hi=0u)); - let ast::fn_decl decl = rec(inputs = [], + let ast::fn_decl decl = rec(inputs = ~[], output = ret_ty, purity = ast::impure_fn, cf = ast::return, constraints = ~[]); auto proto = ast::proto_fn; - let ast::block_ body_ = rec(stmts = [], + let ast::block_ body_ = rec(stmts = ~[], expr = option::none, id = cx.next_node_id()); auto body = rec(node = body_, span = rec(lo=0u, hi=0u)); @@ -87,7 +87,7 @@ fn mk_main(&test_ctxt cx) -> @ast::item { proto = proto, body = body); - auto item_ = ast::item_fn(fn_, []); + auto item_ = ast::item_fn(fn_, ~[]); let ast::item item = rec(ident = "main", attrs = ~[], id = cx.next_node_id(), |
