diff options
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 1af0cfab273..de93bb3712b 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1157,11 +1157,13 @@ pub impl Parser { // parse ident COLON expr fn parse_field(&self) -> field { let lo = self.span.lo; - let m = self.parse_mutability(); let i = self.parse_ident(); self.expect(&token::COLON); let e = self.parse_expr(); - spanned(lo, e.span.hi, ast::field_ { mutbl: m, ident: i, expr: e }) + spanned(lo, e.span.hi, ast::field_ { + ident: i, + expr: e + }) } fn mk_expr(&self, lo: BytePos, hi: BytePos, node: expr_) -> @expr { @@ -2566,10 +2568,6 @@ pub impl Parser { pr: visibility, attrs: ~[attribute]) -> @struct_field { let lo = self.span.lo; - if self.eat_keyword(keywords::Mut) { - // Do nothing, for backwards compatibility. - // XXX: Remove after snapshot. - } if !is_plain_ident(&*self.token) { self.fatal("expected ident"); } |
