Ignore 'mutable foo' in plain field contexts.

This commit is contained in:
Graydon Hoare 2011-03-29 15:40:21 -07:00
parent d7a6c83c8c
commit f6490a6f03

View file

@ -1003,6 +1003,12 @@ fn is_ident(token.token t) -> bool {
impure fn parse_prefix_expr(parser p) -> @ast.expr {
if (p.peek() == token.MUTABLE) {
p.bump();
p.get_session().span_warn(p.get_span(),
"ignoring deprecated 'mutable' prefix operator");
}
auto lo = p.get_span();
auto hi = lo;