aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/comp/front/parser.rs')
-rw-r--r--src/comp/front/parser.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs
index 028b8a31..b00a2deb 100644
--- a/src/comp/front/parser.rs
+++ b/src/comp/front/parser.rs
@@ -452,6 +452,15 @@ impure fn parse_ty(parser p) -> @ast.ty {
t = ast.ty_path(parse_path(p, GREEDY), none[ast.def]);
}
+ case (token.MUTABLE) {
+ p.bump();
+ p.get_session().span_warn(p.get_span(),
+ "ignoring deprecated 'mutable' type constructor");
+ auto typ = parse_ty(p);
+ t = typ.node;
+ hi = typ.span;
+ }
+
case (_) {
p.err("expecting type");
t = ast.ty_nil;