Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 30b4764

Browse files
committedMay 24, 2012
new liveness pass to supercede last_use / initedness
1 parent a3be0b1 commit 30b4764

File tree

89 files changed

+2104
-162
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+2104
-162
lines changed
 

‎src/librustsyntax/ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ enum expr_ {
351351
}
352352

353353
#[auto_serialize]
354-
type capture_item = {
354+
type capture_item = @{
355355
id: int,
356356
is_move: bool,
357357
name: ident, // Currently, can only capture a local var.

‎src/librustsyntax/parse/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ class parser {
434434
fn parse_capture_item(p:parser, is_move: bool) -> capture_item {
435435
let sp = mk_sp(p.span.lo, p.span.hi);
436436
let ident = parse_ident(p);
437-
{id: p.get_id(), is_move: is_move, name: ident, span: sp}
437+
@{id: p.get_id(), is_move: is_move, name: ident, span: sp}
438438
}
439439

440440
if eat_keyword(self, "move") {
@@ -1710,7 +1710,7 @@ class parser {
17101710
let id = p.get_id();
17111711
let sp = mk_sp(p.span.lo, p.span.hi);
17121712
let ident = parse_ident(p);
1713-
res += [{id:id, is_move: is_move, name:ident, span:sp}];
1713+
res += [@{id:id, is_move: is_move, name:ident, span:sp}];
17141714
if !eat(p, token::COMMA) {
17151715
ret res;
17161716
}

0 commit comments

Comments
 (0)
Please sign in to comment.