Don't use static default method
- also removed redundant assignment to is_mutbl - updated copyright
This commit is contained in:
parent
eaaf3f67ab
commit
56d1987575
@ -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)
|
||||
|
@ -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() {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user