File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
branches/try/src/librustc/middle/borrowck Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
5
- refs/heads/try: f19a9b96004d04ae885de30cbc4f88e214a87fb8
5
+ refs/heads/try: f700cf38724a4a9ab31850cf6a5b11c6dbe0524f
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
Original file line number Diff line number Diff line change @@ -181,6 +181,10 @@ impl MoveData {
181
181
self . paths [ * index] . parent
182
182
}
183
183
184
+ fn path_first_move ( & self , index : MovePathIndex ) -> MoveIndex {
185
+ self . paths [ * index] . first_move
186
+ }
187
+
184
188
fn path < ' a > ( & ' a self , index : MovePathIndex ) -> & ' a MovePath {
185
189
//! Type safe indexing operator
186
190
& self . paths [ * index]
@@ -319,7 +323,7 @@ impl MoveData {
319
323
let path_index = self . move_path ( tcx, lp) ;
320
324
let move_index = MoveIndex ( self . moves . len ( ) ) ;
321
325
322
- let next_move = self . path ( path_index) . first_move ;
326
+ let next_move = self . path_first_move ( path_index) ;
323
327
self . mut_path ( path_index) . first_move = move_index;
324
328
325
329
self . moves . push ( Move {
@@ -456,7 +460,7 @@ impl MoveData {
456
460
-> bool {
457
461
let mut ret = true ;
458
462
self . each_extending_path ( index0, |index| {
459
- let mut p = self . path ( index) . first_move ;
463
+ let mut p = self . path_first_move ( index) ;
460
464
while p != InvalidMoveIndex {
461
465
if !f ( p) {
462
466
ret = false ;
You can’t perform that action at this time.
0 commit comments