diff options
| author | Graydon Hoare <[email protected]> | 2011-03-29 15:40:21 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-03-29 15:40:21 -0700 |
| commit | f6490a6f03dd997d7cb801dff9d48a56b336fccc (patch) | |
| tree | b4bce6ff2a05bfd58e6814d37c0cc834d0682150 /src | |
| parent | Apparently I learned to type yesterday. (diff) | |
| download | rust-f6490a6f03dd997d7cb801dff9d48a56b336fccc.tar.xz rust-f6490a6f03dd997d7cb801dff9d48a56b336fccc.zip | |
Ignore 'mutable foo' in plain field contexts.
Diffstat (limited to 'src')
| -rw-r--r-- | src/comp/front/parser.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index 06e22ea8..7bec44e6 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -1003,6 +1003,12 @@ impure fn parse_dot_or_call_expr(parser p) -> @ast.expr { 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; |