diff options
| author | Graydon Hoare <[email protected]> | 2010-10-19 14:54:10 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-10-19 14:54:10 -0700 |
| commit | b8cca0971fc2dcd5f4bf4ac2ce82c1c635da0279 (patch) | |
| tree | 9744ef42235ff93c1534461210c80b0f9ecb35b0 /src/comp/front/parser.rs | |
| parent | Add a type slot to the AST (diff) | |
| download | rust-b8cca0971fc2dcd5f4bf4ac2ce82c1c635da0279.tar.xz rust-b8cca0971fc2dcd5f4bf4ac2ce82c1c635da0279.zip | |
Teach trans to allocate, initialize and load from local variables.
Diffstat (limited to 'src/comp/front/parser.rs')
| -rw-r--r-- | src/comp/front/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index acf64c1b..68603e4a 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -629,7 +629,7 @@ io fn parse_let(parser p) -> @ast.decl { init = init, id = p.next_def_id()); - ret @spanned(lo, hi, ast.decl_local(local)); + ret @spanned(lo, hi, ast.decl_local(@local)); } io fn parse_auto(parser p) -> @ast.decl { @@ -648,7 +648,7 @@ io fn parse_auto(parser p) -> @ast.decl { init = init, id = p.next_def_id()); - ret @spanned(lo, hi, ast.decl_local(local)); + ret @spanned(lo, hi, ast.decl_local(@local)); } io fn parse_stmt(parser p) -> @ast.stmt { |