From 101bc62ad91927e7fd9cf58ee431adf06574e2a7 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Wed, 26 Sep 2012 10:43:11 -0700 Subject: [PATCH] Revert "fix modes on dtors" This reverts commit d38b97a170eaea47933c30937cee5f525573116d. (Accidentally checked this in, oops) --- src/libsyntax/ast_util.rs | 2 +- src/test/run-pass/dtor-explicit-mode.rs | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 src/test/run-pass/dtor-explicit-mode.rs diff --git a/src/libsyntax/ast_util.rs b/src/libsyntax/ast_util.rs index 828f72eb99d..b0df0ea1c8d 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::infer(0), // tjc: node id??? + {inputs: ~[{mode: ast::expl(ast::by_ref), ty: nil_t, ident: parse::token::special_idents::underscore, id: 0}], output: nil_t, cf: return_val} diff --git a/src/test/run-pass/dtor-explicit-mode.rs b/src/test/run-pass/dtor-explicit-mode.rs deleted file mode 100644 index c1f7890ab58..00000000000 --- a/src/test/run-pass/dtor-explicit-mode.rs +++ /dev/null @@ -1,6 +0,0 @@ -struct Foo { - x: int, - drop { } -} - -fn main() {}