Skip to content

Commit 101bc62

Browse files
committed
Revert "fix modes on dtors"
This reverts commit d38b97a. (Accidentally checked this in, oops)
1 parent 5409349 commit 101bc62

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/libsyntax/ast_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ fn operator_prec(op: ast::binop) -> uint {
399399
fn dtor_dec() -> fn_decl {
400400
let nil_t = @{id: 0, node: ty_nil, span: dummy_sp()};
401401
// dtor has one argument, of type ()
402-
{inputs: ~[{mode: ast::infer(0), // tjc: node id???
402+
{inputs: ~[{mode: ast::expl(ast::by_ref),
403403
ty: nil_t, ident: parse::token::special_idents::underscore,
404404
id: 0}],
405405
output: nil_t, cf: return_val}

src/test/run-pass/dtor-explicit-mode.rs

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)