提交 f6490a6f 编写于 作者: G Graydon Hoare

Ignore 'mutable foo' in plain field contexts.

上级 d7a6c83c
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册