Skip to content

Commit 3f1fcfb

Browse files
committed
---
yaml --- r: 3178 b: refs/heads/master c: 94cd298 h: refs/heads/master v: v3
1 parent 325cbe2 commit 3f1fcfb

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: d90ad442b412448f66e7f4401f1d26d9f2e66454
2+
refs/heads/master: 94cd2985b267dd8462f2518c5d9109b4e0f71402

trunk/src/comp/front/parser.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,12 @@ fn parse_ty_postfix(@ast::ty orig_t, &parser p) -> @ast::ty {
418418

419419
auto mut;
420420
if (eat_word(p, "mutable")) {
421-
mut = ast::mut;
421+
if (p.peek() == token::QUES) {
422+
p.bump();
423+
mut = ast::maybe_mut;
424+
} else {
425+
mut = ast::mut;
426+
}
422427
} else {
423428
mut = ast::imm;
424429
}

0 commit comments

Comments
 (0)