File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
branches/try2/src/libsyntax Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: acdc9987371092422dedf88bc8a0542e688986c5
8
+ refs/heads/try2: 9d6f8cdefad70fe670147a4dc10a72e53c4e261a
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -456,12 +456,12 @@ impl Visitor<()> for Ctx {
456
456
}
457
457
458
458
pub fn map_crate ( diag : @SpanHandler , c : & Crate ) -> map {
459
- let cx = @ mut Ctx {
459
+ let mut cx = Ctx {
460
460
map : @RefCell :: new ( HashMap :: new ( ) ) ,
461
461
path : RefCell :: new ( ~[ ] ) ,
462
462
diag : diag,
463
463
} ;
464
- visit:: walk_crate ( cx, c, ( ) ) ;
464
+ visit:: walk_crate ( & mut cx, c, ( ) ) ;
465
465
cx. map
466
466
}
467
467
@@ -475,7 +475,7 @@ pub fn map_decoded_item(diag: @SpanHandler,
475
475
// I believe it is ok for the local IDs of inlined items from other crates
476
476
// to overlap with the local ids from this crate, so just generate the ids
477
477
// starting from 0.
478
- let cx = @ mut Ctx {
478
+ let mut cx = Ctx {
479
479
map : map,
480
480
path : RefCell :: new ( path. clone ( ) ) ,
481
481
diag : diag,
@@ -499,7 +499,7 @@ pub fn map_decoded_item(diag: @SpanHandler,
499
499
}
500
500
501
501
// visit the item / method contents and add those to the map:
502
- ii. accept ( ( ) , cx) ;
502
+ ii. accept ( ( ) , & mut cx) ;
503
503
}
504
504
505
505
pub fn node_id_to_str ( map : map , id : NodeId , itr : @ident_interner ) -> ~str {
You can’t perform that action at this time.
0 commit comments