Make box prefix operator and box type carry mutability flag.
This commit is contained in:
parent
bd9f45446a
commit
70e5457d7c
5 changed files with 17 additions and 14 deletions
|
@ -1074,9 +1074,10 @@ impure fn parse_prefix_expr(parser p) -> @ast.expr {
|
|||
|
||||
case (token.AT) {
|
||||
p.bump();
|
||||
auto m = parse_mutability(p);
|
||||
auto e = parse_prefix_expr(p);
|
||||
hi = e.span;
|
||||
ex = ast.expr_unary(ast.box, e, ast.ann_none);
|
||||
ex = ast.expr_unary(ast.box(m), e, ast.ann_none);
|
||||
}
|
||||
|
||||
case (_) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue