diff options
Diffstat (limited to 'src/librustc/middle/cfg/construct.rs')
| -rw-r--r-- | src/librustc/middle/cfg/construct.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/middle/cfg/construct.rs b/src/librustc/middle/cfg/construct.rs index 05cc61a7547..f1c288ae7a9 100644 --- a/src/librustc/middle/cfg/construct.rs +++ b/src/librustc/middle/cfg/construct.rs @@ -421,7 +421,7 @@ impl<'a, 'tcx> CFGBuilder<'a, 'tcx> { ast::ExprIndex(ref l, ref r) | ast::ExprBinary(_, ref l, ref r) if self.is_method_call(expr) => { - self.call(expr, pred, &**l, Some(&**r).move_iter()) + self.call(expr, pred, &**l, Some(&**r).into_iter()) } ast::ExprUnary(_, ref e) if self.is_method_call(expr) => { @@ -461,7 +461,7 @@ impl<'a, 'tcx> CFGBuilder<'a, 'tcx> { ast::ExprParen(ref e) | ast::ExprField(ref e, _, _) | ast::ExprTupField(ref e, _, _) => { - self.straightline(expr, pred, Some(&**e).move_iter()) + self.straightline(expr, pred, Some(&**e).into_iter()) } ast::ExprInlineAsm(ref inline_asm) => { |
