diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-09-23 09:56:08 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-09-23 09:58:51 +0200 |
| commit | b029789f02b43772fe53d6ec040cf5ad4400d10c (patch) | |
| tree | 4dba4d5ad6ff2e664677613dd73b64198bfa63ff /src/comp/syntax/parse | |
| parent | 93b9574d32dbe3cc4db5d60793371542b456bbad (diff) | |
| download | rust-b029789f02b43772fe53d6ec040cf5ad4400d10c.tar.gz rust-b029789f02b43772fe53d6ec040cf5ad4400d10c.zip | |
Remove backward-compatible support for 'mutable' before type.
Closes #966
Diffstat (limited to 'src/comp/syntax/parse')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 6869dc6501d..aa377ac1956 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -578,11 +578,6 @@ fn parse_ty(p: parser, colons_before_params: bool) -> @ast::ty { alt t { ast::ty_fn(_, _, out, _, _) { hi = out.span.hi; } } } else if eat_word(p, "obj") { t = parse_ty_obj(p, hi); - } else if eat_word(p, "mutable") { - p.warn("ignoring deprecated 'mutable' type constructor"); - let typ = parse_ty(p, false); - t = typ.node; - hi = typ.span.hi; } else if p.peek() == token::MOD_SEP || is_ident(p.peek()) { let path = parse_path(p); t = ast::ty_path(path, p.get_id()); @@ -1104,9 +1099,6 @@ fn parse_dot_or_call_expr_with(p: parser, e: @ast::expr) -> @ast::expr { } fn parse_prefix_expr(p: parser) -> @ast::expr { - if eat_word(p, "mutable") { - p.warn("ignoring deprecated 'mutable' prefix operator"); - } let lo = p.get_lo_pos(); let hi = p.get_hi_pos(); |
