rustc: Parse T[mutable?]
This commit is contained in:
parent
d90ad442b4
commit
94cd2985b2
@ -418,7 +418,12 @@ fn parse_ty_postfix(@ast::ty orig_t, &parser p) -> @ast::ty {
|
||||
|
||||
auto mut;
|
||||
if (eat_word(p, "mutable")) {
|
||||
mut = ast::mut;
|
||||
if (p.peek() == token::QUES) {
|
||||
p.bump();
|
||||
mut = ast::maybe_mut;
|
||||
} else {
|
||||
mut = ast::mut;
|
||||
}
|
||||
} else {
|
||||
mut = ast::imm;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user