Skip to content

Commit b029789

Browse files
committed
Remove backward-compatible support for 'mutable' before type.
Closes #966
1 parent 93b9574 commit b029789

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/comp/syntax/parse/parser.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -578,11 +578,6 @@ fn parse_ty(p: parser, colons_before_params: bool) -> @ast::ty {
578578
alt t { ast::ty_fn(_, _, out, _, _) { hi = out.span.hi; } }
579579
} else if eat_word(p, "obj") {
580580
t = parse_ty_obj(p, hi);
581-
} else if eat_word(p, "mutable") {
582-
p.warn("ignoring deprecated 'mutable' type constructor");
583-
let typ = parse_ty(p, false);
584-
t = typ.node;
585-
hi = typ.span.hi;
586581
} else if p.peek() == token::MOD_SEP || is_ident(p.peek()) {
587582
let path = parse_path(p);
588583
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 {
11041099
}
11051100

11061101
fn parse_prefix_expr(p: parser) -> @ast::expr {
1107-
if eat_word(p, "mutable") {
1108-
p.warn("ignoring deprecated 'mutable' prefix operator");
1109-
}
11101102
let lo = p.get_lo_pos();
11111103
let hi = p.get_hi_pos();
11121104

0 commit comments

Comments
 (0)