about summary refs log tree commit diff
path: root/src/librustsyntax
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2012-05-19 05:52:01 -0700
committerNiko Matsakis <niko@alum.mit.edu>2012-05-24 09:52:03 -0700
commit30b47649ea37d211ee2dec4c541e6ba1e64c31a8 (patch)
treeb6b5825a2711f7911bd64bd1e505d44253d4e256 /src/librustsyntax
parenta3be0b105436118e187ea52deb89788afaf1edb5 (diff)
downloadrust-30b47649ea37d211ee2dec4c541e6ba1e64c31a8.tar.gz
rust-30b47649ea37d211ee2dec4c541e6ba1e64c31a8.zip
new liveness pass to supercede last_use / initedness
Diffstat (limited to 'src/librustsyntax')
-rw-r--r--src/librustsyntax/ast.rs2
-rw-r--r--src/librustsyntax/parse/parser.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/librustsyntax/ast.rs b/src/librustsyntax/ast.rs
index 05a5a17b2f7..3404f277e8d 100644
--- a/src/librustsyntax/ast.rs
+++ b/src/librustsyntax/ast.rs
@@ -351,7 +351,7 @@ enum expr_ {
 }
 
 #[auto_serialize]
-type capture_item = {
+type capture_item = @{
     id: int,
     is_move: bool,
     name: ident, // Currently, can only capture a local var.
diff --git a/src/librustsyntax/parse/parser.rs b/src/librustsyntax/parse/parser.rs
index c81d9ace376..51b26373c36 100644
--- a/src/librustsyntax/parse/parser.rs
+++ b/src/librustsyntax/parse/parser.rs
@@ -434,7 +434,7 @@ class parser {
         fn parse_capture_item(p:parser, is_move: bool) -> capture_item {
             let sp = mk_sp(p.span.lo, p.span.hi);
             let ident = parse_ident(p);
-            {id: p.get_id(), is_move: is_move, name: ident, span: sp}
+            @{id: p.get_id(), is_move: is_move, name: ident, span: sp}
         }
 
         if eat_keyword(self, "move") {
@@ -1710,7 +1710,7 @@ class parser {
                     let id = p.get_id();
                     let sp = mk_sp(p.span.lo, p.span.hi);
                     let ident = parse_ident(p);
-                    res += [{id:id, is_move: is_move, name:ident, span:sp}];
+                    res += [@{id:id, is_move: is_move, name:ident, span:sp}];
                     if !eat(p, token::COMMA) {
                         ret res;
                     }