Skip to content

Commit c93ec2f

Browse files
committed
---
yaml --- r: 97388 b: refs/heads/dist-snap c: 9d6f8cd h: refs/heads/master v: v3
1 parent 09e43ce commit c93ec2f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: acdc9987371092422dedf88bc8a0542e688986c5
9+
refs/heads/dist-snap: 9d6f8cdefad70fe670147a4dc10a72e53c4e261a
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/libsyntax/ast_map.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -456,12 +456,12 @@ impl Visitor<()> for Ctx {
456456
}
457457

458458
pub fn map_crate(diag: @SpanHandler, c: &Crate) -> map {
459-
let cx = @mut Ctx {
459+
let mut cx = Ctx {
460460
map: @RefCell::new(HashMap::new()),
461461
path: RefCell::new(~[]),
462462
diag: diag,
463463
};
464-
visit::walk_crate(cx, c, ());
464+
visit::walk_crate(&mut cx, c, ());
465465
cx.map
466466
}
467467

@@ -475,7 +475,7 @@ pub fn map_decoded_item(diag: @SpanHandler,
475475
// I believe it is ok for the local IDs of inlined items from other crates
476476
// to overlap with the local ids from this crate, so just generate the ids
477477
// starting from 0.
478-
let cx = @mut Ctx {
478+
let mut cx = Ctx {
479479
map: map,
480480
path: RefCell::new(path.clone()),
481481
diag: diag,
@@ -499,7 +499,7 @@ pub fn map_decoded_item(diag: @SpanHandler,
499499
}
500500

501501
// visit the item / method contents and add those to the map:
502-
ii.accept((), cx);
502+
ii.accept((), &mut cx);
503503
}
504504

505505
pub fn node_id_to_str(map: map, id: NodeId, itr: @ident_interner) -> ~str {

0 commit comments

Comments
 (0)