Skip to content

Commit 65e4b31

Browse files
committed
---
yaml --- r: 147928 b: refs/heads/try2 c: 9d6f8cd h: refs/heads/master v: v3
1 parent 2e67187 commit 65e4b31

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
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: acdc9987371092422dedf88bc8a0542e688986c5
8+
refs/heads/try2: 9d6f8cdefad70fe670147a4dc10a72e53c4e261a
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/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)