diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index e8e7828e4656..114a8bf9d3d2 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1086,7 +1086,6 @@ impl Parser { self.expect(&token::COLON); pat } else { - is_mutbl = false; ast_util::ident_to_pat(self.get_id(), *self.last_span, special_idents::invalid) diff --git a/src/test/run-pass/traits-default-method-mut.rs b/src/test/run-pass/traits-default-method-mut.rs index a36f0178c157..3286c4ef5935 100644 --- a/src/test/run-pass/traits-default-method-mut.rs +++ b/src/test/run-pass/traits-default-method-mut.rs @@ -1,4 +1,4 @@ -// Copyright 2012 The Rust Project Developers. See the COPYRIGHT +// Copyright 2013 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // @@ -11,7 +11,7 @@ #[allow(default_methods)]; trait Foo { - fn foo(mut v: int) { v = 1; } + fn foo(&self, mut v: int) { v = 1; } } fn main() {}