File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/librustc/middle/borrowck Expand file tree Collapse file tree 1 file changed +6
-2
lines changed 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