@@ -26,6 +26,7 @@ use std::cell::Ref;
26
26
use std:: fmt:: { self , Debug , Formatter , Write } ;
27
27
use std:: { iter, u32} ;
28
28
use std:: ops:: { Index , IndexMut } ;
29
+ use std:: vec:: IntoIter ;
29
30
use syntax:: ast:: { self , Name } ;
30
31
use syntax:: codemap:: Span ;
31
32
@@ -146,16 +147,12 @@ impl<'tcx> Mir<'tcx> {
146
147
pub fn predecessors_for ( & self , bb : BasicBlock ) -> Ref < Vec < BasicBlock > > {
147
148
Ref :: map ( self . predecessors ( ) , |p| & p[ bb] )
148
149
}
149
- <<<<<<< HEAD
150
- =======
151
-
152
150
#[ inline]
153
151
//pub fn dominators(&'tcx self) -> Ref<Dominators<Self>> {
154
152
pub fn dominators ( & self ) -> Dominators < Self > {
155
153
//self.cache.dominators(self)
156
154
dominators ( self )
157
155
}
158
- >>>>>>> 1 cc95c9c198110db2840e76e0a00015ac39785f8
159
156
}
160
157
161
158
impl < ' tcx > Index < BasicBlock > for Mir < ' tcx > {
@@ -1201,10 +1198,10 @@ impl<'tcx> Graph for Mir<'tcx> {
1201
1198
1202
1199
impl < ' a , ' b > GraphPredecessors < ' b > for Mir < ' a > {
1203
1200
type Item = BasicBlock ;
1204
- type Iter = std :: vec :: IntoIter <BasicBlock >;
1201
+ type Iter = IntoIter < BasicBlock > ;
1205
1202
}
1206
1203
1207
1204
impl < ' a , ' b > GraphSuccessors < ' b > for Mir < ' a > {
1208
1205
type Item = BasicBlock ;
1209
- type Iter = std :: vec :: IntoIter <BasicBlock >;
1206
+ type Iter = IntoIter < BasicBlock > ;
1210
1207
}
0 commit comments