diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-09-26 10:13:27 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-09-26 10:42:11 -0700 |
| commit | d38b97a170eaea47933c30937cee5f525573116d (patch) | |
| tree | 8dac7aa8a933edd584aaa237cb289feaf0b96e28 /src/libsyntax | |
| parent | e0d5d034513f21859b587a0a0b043967cda62f97 (diff) | |
fix modes on dtors
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast_util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ast_util.rs b/src/libsyntax/ast_util.rs index b0df0ea1c8d..828f72eb99d 100644 --- a/src/libsyntax/ast_util.rs +++ b/src/libsyntax/ast_util.rs @@ -399,7 +399,7 @@ fn operator_prec(op: ast::binop) -> uint { fn dtor_dec() -> fn_decl { let nil_t = @{id: 0, node: ty_nil, span: dummy_sp()}; // dtor has one argument, of type () - {inputs: ~[{mode: ast::expl(ast::by_ref), + {inputs: ~[{mode: ast::infer(0), // tjc: node id??? ty: nil_t, ident: parse::token::special_idents::underscore, id: 0}], output: nil_t, cf: return_val} |
