rustc: Remove all exterior vectors from the AST
This commit is contained in:
parent
3958c72cd8
commit
e1b107d74e
12 changed files with 62 additions and 70 deletions
|
@ -50,14 +50,12 @@ fn fold_crate(&test_ctxt cx, &ast::crate_ c,
|
|||
|
||||
fn add_test_module(&test_ctxt cx, &ast::_mod m) -> ast::_mod {
|
||||
auto testmod = mk_test_module(cx);
|
||||
ret rec(items = m.items + [testmod]
|
||||
with m);
|
||||
ret rec(items=m.items + ~[testmod] with m);
|
||||
}
|
||||
|
||||
fn mk_test_module(&test_ctxt cx) -> @ast::item {
|
||||
auto mainfn = mk_main(cx);
|
||||
let ast::_mod testmod = rec(view_items = [],
|
||||
items = [mainfn]);
|
||||
let ast::_mod testmod = rec(view_items=~[], items=~[mainfn]);
|
||||
auto item_ = ast::item_mod(testmod);
|
||||
let ast::item item = rec(ident = "__test",
|
||||
attrs = ~[],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue