diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-09-16 14:35:39 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-09-16 14:39:30 +0200 |
| commit | f8a35234ad65a006243aee60406fa9f8a05c08f0 (patch) | |
| tree | c3d025e5d621f186abe8e1b30048b69c2f45e238 /src/comp/front | |
| parent | c04490d97bbbf6f3313e1014e88b561c73c0bd1c (diff) | |
Remove autoderef for calls
We were only using it in a single place, and there for no discernable reason (probably as part of the bare-fn-vals-are-not-copyable plan). It seems more surprising than useful.
Diffstat (limited to 'src/comp/front')
| -rw-r--r-- | src/comp/front/test.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/front/test.rs b/src/comp/front/test.rs index fcc4f883139..44ae6838a81 100644 --- a/src/comp/front/test.rs +++ b/src/comp/front/test.rs @@ -10,7 +10,7 @@ import front::attr; export modify_for_testing; -type node_id_gen = @fn() -> ast::node_id; +type node_id_gen = fn() -> ast::node_id; type test = {path: [ast::ident], ignore: bool}; @@ -29,7 +29,7 @@ fn modify_for_testing(crate: @ast::crate) -> @ast::crate { // access to the real next node_id. let next_node_id = @mutable 200000; let next_node_id_fn = - @bind fn (next_node_id: @mutable ast::node_id) -> ast::node_id { + bind fn (next_node_id: @mutable ast::node_id) -> ast::node_id { let this_node_id = *next_node_id; *next_node_id += 1; ret this_node_id; |
