diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-10-10 13:32:50 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-10-10 15:59:16 +0200 |
| commit | b4bae8fea5943a0b95a1a9be13a8155ee45418b7 (patch) | |
| tree | fb1ebdf8465f626dee6ffb508155f267280cd5e4 /src/comp/front | |
| parent | 5c53959f203272c94095c8b6b2271b127d01be6f (diff) | |
| download | rust-b4bae8fea5943a0b95a1a9be13a8155ee45418b7.tar.gz rust-b4bae8fea5943a0b95a1a9be13a8155ee45418b7.zip | |
Make vectors and strings immediates again
There's no good reason to force them to be spilled anymore. Some pieces of trans become more elegant this way, and less stack allocs and load/stores are needed. Issue #1021
Diffstat (limited to 'src/comp/front')
| -rw-r--r-- | src/comp/front/test.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/front/test.rs b/src/comp/front/test.rs index 78b6388b17a..6f7270f4396 100644 --- a/src/comp/front/test.rs +++ b/src/comp/front/test.rs @@ -284,7 +284,7 @@ fn mk_main(cx: test_ctxt) -> @ast::item { let args_ty: ast::ty = nospan(ast::ty_vec(args_mt)); let args_arg: ast::arg = - {mode: ast::by_ref, + {mode: ast::by_val, ty: @args_ty, ident: "args", id: cx.next_node_id()}; |
