Don't use static default method

- also removed redundant assignment to is_mutbl
 - updated copyright
This commit is contained in:
John Barker 2013-07-09 10:21:25 -04:00
parent eaaf3f67ab
commit 56d1987575
2 changed files with 2 additions and 3 deletions

View File

@ -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)

View File

@ -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() {}