diff options
| author | Graydon Hoare <[email protected]> | 2011-04-04 15:44:15 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-04-04 15:44:15 -0700 |
| commit | 70e5457d7c99d3b273c3ef9edaebee1324be85c7 (patch) | |
| tree | 215db03e8e982504f4b182b833140f2a6dcc6c0b /src/comp/front/parser.rs | |
| parent | Begin comparing vectors from the correct address (diff) | |
| download | rust-70e5457d7c99d3b273c3ef9edaebee1324be85c7.tar.xz rust-70e5457d7c99d3b273c3ef9edaebee1324be85c7.zip | |
Make box prefix operator and box type carry mutability flag.
Diffstat (limited to 'src/comp/front/parser.rs')
| -rw-r--r-- | src/comp/front/parser.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index 4c3e6cf0..1e0a9042 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -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 (_) { |