1
Fork 0

libsyntax: Stop parsing mutable fields

This commit is contained in:
Patrick Walton 2013-05-23 19:47:38 -07:00
parent 481d4ca43f
commit 4e3d4b36dc
6 changed files with 6 additions and 15 deletions

View file

@ -486,7 +486,7 @@ impl AstBuilder for @ExtCtxt {
self.expr(b.span, ast::expr_block(b))
}
fn field_imm(&self, span: span, name: ident, e: @ast::expr) -> ast::field {
respan(span, ast::field_ { mutbl: ast::m_imm, ident: name, expr: e })
respan(span, ast::field_ { ident: name, expr: e })
}
fn expr_struct(&self, span: span, path: @ast::Path, fields: ~[ast::field]) -> @ast::expr {
self.expr(span, ast::expr_struct(path, fields, None))