File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
branches/try/src/librustc/middle/borrowck Expand file tree Collapse file tree 2 files changed +9
-6
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: f700cf38724a4a9ab31850cf6a5b11c6dbe0524f
5
+ refs/heads/try: fcb47813a4db607ae35e24e8e549d6f849723b5a
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 @@ -185,9 +185,12 @@ impl MoveData {
185
185
self . paths [ * index] . first_move
186
186
}
187
187
188
- fn path < ' a > ( & ' a self , index : MovePathIndex ) -> & ' a MovePath {
189
- //! Type safe indexing operator
190
- & self . paths [ * index]
188
+ fn path_first_child ( & self , index : MovePathIndex ) -> MovePathIndex {
189
+ self . paths [ * index] . first_child
190
+ }
191
+
192
+ fn path_next_sibling ( & self , index : MovePathIndex ) -> MovePathIndex {
193
+ self . paths [ * index] . next_sibling
191
194
}
192
195
193
196
fn mut_path < ' a > ( & ' a mut self , index : MovePathIndex ) -> & ' a mut MovePath {
@@ -443,12 +446,12 @@ impl MoveData {
443
446
return false ;
444
447
}
445
448
446
- let mut p = self . path ( index) . first_child ;
449
+ let mut p = self . path_first_child ( index) ;
447
450
while p != InvalidMovePathIndex {
448
451
if !self . each_extending_path ( p, |x| f ( x) ) {
449
452
return false ;
450
453
}
451
- p = self . path ( p) . next_sibling ;
454
+ p = self . path_next_sibling ( p) ;
452
455
}
453
456
454
457
return true ;
You can’t perform that action at this time.
0 commit comments