File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
branches/dist-snap/src/librustc/driver Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
- refs/heads/dist-snap: eaf69494a5a126189b052102e1b36d1d8bced953
9
+ refs/heads/dist-snap: c56bac7f409f0e555120894b12f3d4448ec07fe5
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
12
12
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
Original file line number Diff line number Diff line change @@ -881,7 +881,7 @@ pub fn build_session_(sopts: @session::options,
881
881
building_library : @mut false ,
882
882
working_dir : os:: getcwd ( ) ,
883
883
lints : RefCell :: new ( HashMap :: new ( ) ) ,
884
- node_id : @ mut 1 ,
884
+ node_id : Cell :: new ( 1 ) ,
885
885
outputs : @mut ~[ ] ,
886
886
}
887
887
}
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ pub struct Session_ {
214
214
working_dir : Path ,
215
215
lints : RefCell < HashMap < ast:: NodeId ,
216
216
~[ ( lint:: lint , codemap:: Span , ~str ) ] > > ,
217
- node_id : @ mut ast:: NodeId ,
217
+ node_id : Cell < ast:: NodeId > ,
218
218
outputs : @mut ~[ OutputStyle ] ,
219
219
}
220
220
@@ -282,10 +282,10 @@ impl Session_ {
282
282
self . reserve_node_ids ( 1 )
283
283
}
284
284
pub fn reserve_node_ids ( & self , count : ast:: NodeId ) -> ast:: NodeId {
285
- let v = * self . node_id ;
285
+ let v = self . node_id . get ( ) ;
286
286
287
287
match v. checked_add ( & count) {
288
- Some ( next) => { * self . node_id = next; }
288
+ Some ( next) => { self . node_id . set ( next) ; }
289
289
None => self . bug ( "Input too large, ran out of node ids!" )
290
290
}
291
291
You can’t perform that action at this time.
0 commit comments