Skip to content

Commit 56d1987

Browse files
committed
Don't use static default method
- also removed redundant assignment to is_mutbl - updated copyright
1 parent eaaf3f6 commit 56d1987

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,6 @@ impl Parser {
10861086
self.expect(&token::COLON);
10871087
pat
10881088
} else {
1089-
is_mutbl = false;
10901089
ast_util::ident_to_pat(self.get_id(),
10911090
*self.last_span,
10921091
special_idents::invalid)

src/test/run-pass/traits-default-method-mut.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -11,7 +11,7 @@
1111
#[allow(default_methods)];
1212

1313
trait Foo {
14-
fn foo(mut v: int) { v = 1; }
14+
fn foo(&self, mut v: int) { v = 1; }
1515
}
1616

1717
fn main() {}

0 commit comments

Comments
 (0)