diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-08-13 22:34:03 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-08-16 10:29:08 -0700 |
| commit | 184eac90ab5e5e1e52d24b6711813bf3b66c1fea (patch) | |
| tree | 89fd0cba27a43f1a1b646198dcc729bdbe3cf350 /src/comp | |
| parent | 053b8bff5a81a0cb6c347f8c371fa5b66f48dbda (diff) | |
Add and use an ivec interface to std::test
Diffstat (limited to 'src/comp')
| -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 5d6cc62c37d..77cf7e3daed 100644 --- a/src/comp/front/test.rs +++ b/src/comp/front/test.rs @@ -135,7 +135,7 @@ We're going to be building a module that looks more or less like: mod __test { - fn main(vec[str] args) -> int { + fn main(args: [str]) -> int { std::test::test_main(args, tests()) } @@ -285,7 +285,7 @@ fn mk_test_desc_rec(cx: &test_ctxt, test: test) -> @ast::expr { fn mk_main(cx: &test_ctxt) -> @ast::item { let args_mt: ast::mt = {ty: @nospan(ast::ty_str), mut: ast::imm}; - let args_ty: ast::ty = nospan(ast::ty_vec(args_mt)); + let args_ty: ast::ty = nospan(ast::ty_ivec(args_mt)); let args_arg: ast::arg = {mode: ast::val, ty: @args_ty, ident: "args", id: cx.next_node_id()}; @@ -355,7 +355,7 @@ fn mk_test_main_call(cx: &test_ctxt) -> @ast::expr { // Call std::test::test_main let test_main_path: ast::path = nospan({global: false, - idents: ~["std", "test", "test_main"], + idents: ~["std", "test", "test_main_ivec"], types: ~[]}); let test_main_path_expr_: ast::expr_ = ast::expr_path(test_main_path); |
