@@ -212,7 +212,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for RedundantClone {
212212/// If `kind` is `y = func(x: &T)` where `T: !Copy`, returns `(DefId of func, x, T, y)`.
213213fn is_call_with_ref_arg < ' tcx > (
214214 cx : & LateContext < ' _ , ' tcx > ,
215- mir : & ' tcx mir:: Mir < ' tcx > ,
215+ mir : & ' tcx mir:: Body < ' tcx > ,
216216 kind : & ' tcx mir:: TerminatorKind < ' tcx > ,
217217) -> Option < ( def_id:: DefId , mir:: Local , Ty < ' tcx > , Option < & ' tcx mir:: Place < ' tcx > > ) > {
218218 if_chain ! {
@@ -236,7 +236,7 @@ type CannotMoveOut = bool;
236236/// ``Some((from, [`true` if `from` cannot be moved out]))``.
237237fn find_stmt_assigns_to < ' a , ' tcx : ' a > (
238238 cx : & LateContext < ' _ , ' tcx > ,
239- mir : & mir:: Mir < ' tcx > ,
239+ mir : & mir:: Body < ' tcx > ,
240240 to : mir:: Local ,
241241 by_ref : bool ,
242242 stmts : impl DoubleEndedIterator < Item = & ' a mir:: Statement < ' tcx > > ,
@@ -270,7 +270,7 @@ fn find_stmt_assigns_to<'a, 'tcx: 'a>(
270270/// Also reports whether given `place` cannot be moved out.
271271fn base_local_and_movability < ' tcx > (
272272 cx : & LateContext < ' _ , ' tcx > ,
273- mir : & mir:: Mir < ' tcx > ,
273+ mir : & mir:: Body < ' tcx > ,
274274 mut place : & mir:: Place < ' tcx > ,
275275) -> Option < ( mir:: Local , CannotMoveOut ) > {
276276 use rustc:: mir:: Place :: * ;
0 commit comments