File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 2ef9c01ffcd160937ddccc91a6f5e9fa24f22fd4
2
+ refs/heads/master: 949ba9ca460779ee75386b6dcec6b4f7d1774363
Original file line number Diff line number Diff line change @@ -159,7 +159,14 @@ and parse_effect (ps:pstate) : Ast.effect =
159
159
160
160
and parse_mutability (ps :pstate ) : Ast.mutability =
161
161
match peek ps with
162
- MUTABLE -> bump ps; Ast. MUT_mutable
162
+ MUTABLE ->
163
+ begin
164
+ (* HACK: ignore "mutable?" *)
165
+ bump ps;
166
+ match peek ps with
167
+ QUES -> bump ps; Ast. MUT_immutable
168
+ | _ -> Ast. MUT_mutable
169
+ end
163
170
| _ -> Ast. MUT_immutable
164
171
165
172
and parse_ty_fn
@@ -310,7 +317,12 @@ and parse_atomic_ty (ps:pstate) : Ast.ty =
310
317
311
318
| MUTABLE ->
312
319
bump ps;
313
- Ast. TY_mutable (parse_ty ps)
320
+ begin
321
+ (* HACK: ignore "mutable?" *)
322
+ match peek ps with
323
+ QUES -> bump ps; parse_ty ps
324
+ | _ -> Ast. TY_mutable (parse_ty ps)
325
+ end
314
326
315
327
| LPAREN ->
316
328
begin
You can’t perform that action at this time.
0 commit comments