Skip to content

Commit 5af6275

Browse files
committed
fix iter type and merge conflict
1 parent 2d3ab15 commit 5af6275

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/librustc/mir/repr.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ use std::cell::Ref;
2626
use std::fmt::{self, Debug, Formatter, Write};
2727
use std::{iter, u32};
2828
use std::ops::{Index, IndexMut};
29+
use std::vec::IntoIter;
2930
use syntax::ast::{self, Name};
3031
use syntax::codemap::Span;
3132

@@ -146,16 +147,12 @@ impl<'tcx> Mir<'tcx> {
146147
pub fn predecessors_for(&self, bb: BasicBlock) -> Ref<Vec<BasicBlock>> {
147148
Ref::map(self.predecessors(), |p| &p[bb])
148149
}
149-
<<<<<<< HEAD
150-
=======
151-
152150
#[inline]
153151
//pub fn dominators(&'tcx self) -> Ref<Dominators<Self>> {
154152
pub fn dominators(&self) -> Dominators<Self> {
155153
//self.cache.dominators(self)
156154
dominators(self)
157155
}
158-
>>>>>>> 1cc95c9c198110db2840e76e0a00015ac39785f8
159156
}
160157

161158
impl<'tcx> Index<BasicBlock> for Mir<'tcx> {
@@ -1201,10 +1198,10 @@ impl<'tcx> Graph for Mir<'tcx> {
12011198

12021199
impl<'a, 'b> GraphPredecessors<'b> for Mir<'a> {
12031200
type Item = BasicBlock;
1204-
type Iter = std::vec::IntoIter<BasicBlock>;
1201+
type Iter = IntoIter<BasicBlock>;
12051202
}
12061203

12071204
impl<'a, 'b> GraphSuccessors<'b> for Mir<'a> {
12081205
type Item = BasicBlock;
1209-
type Iter = std::vec::IntoIter<BasicBlock>;
1206+
type Iter = IntoIter<BasicBlock>;
12101207
}

0 commit comments

Comments
 (0)