1
Fork 0

Make box prefix operator and box type carry mutability flag.

This commit is contained in:
Graydon Hoare 2011-04-04 15:44:15 -07:00
parent bd9f45446a
commit 70e5457d7c
5 changed files with 17 additions and 14 deletions

View file

@ -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 (_) {