Skip to content

Commit f6490a6

Browse files
committed
Ignore 'mutable foo' in plain field contexts.
1 parent d7a6c83 commit f6490a6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/comp/front/parser.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1003,6 +1003,12 @@ impure fn parse_dot_or_call_expr(parser p) -> @ast.expr {
10031003

10041004
impure fn parse_prefix_expr(parser p) -> @ast.expr {
10051005

1006+
if (p.peek() == token.MUTABLE) {
1007+
p.bump();
1008+
p.get_session().span_warn(p.get_span(),
1009+
"ignoring deprecated 'mutable' prefix operator");
1010+
}
1011+
10061012
auto lo = p.get_span();
10071013
auto hi = lo;
10081014

0 commit comments

Comments
 (0)