@@ -212,7 +212,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for RedundantClone {
212
212
/// If `kind` is `y = func(x: &T)` where `T: !Copy`, returns `(DefId of func, x, T, y)`.
213
213
fn is_call_with_ref_arg < ' tcx > (
214
214
cx : & LateContext < ' _ , ' tcx > ,
215
- mir : & ' tcx mir:: Mir < ' tcx > ,
215
+ mir : & ' tcx mir:: Body < ' tcx > ,
216
216
kind : & ' tcx mir:: TerminatorKind < ' tcx > ,
217
217
) -> Option < ( def_id:: DefId , mir:: Local , Ty < ' tcx > , Option < & ' tcx mir:: Place < ' tcx > > ) > {
218
218
if_chain ! {
@@ -236,7 +236,7 @@ type CannotMoveOut = bool;
236
236
/// ``Some((from, [`true` if `from` cannot be moved out]))``.
237
237
fn find_stmt_assigns_to < ' a , ' tcx : ' a > (
238
238
cx : & LateContext < ' _ , ' tcx > ,
239
- mir : & mir:: Mir < ' tcx > ,
239
+ mir : & mir:: Body < ' tcx > ,
240
240
to : mir:: Local ,
241
241
by_ref : bool ,
242
242
stmts : impl DoubleEndedIterator < Item = & ' a mir:: Statement < ' tcx > > ,
@@ -270,7 +270,7 @@ fn find_stmt_assigns_to<'a, 'tcx: 'a>(
270
270
/// Also reports whether given `place` cannot be moved out.
271
271
fn base_local_and_movability < ' tcx > (
272
272
cx : & LateContext < ' _ , ' tcx > ,
273
- mir : & mir:: Mir < ' tcx > ,
273
+ mir : & mir:: Body < ' tcx > ,
274
274
mut place : & mir:: Place < ' tcx > ,
275
275
) -> Option < ( mir:: Local , CannotMoveOut ) > {
276
276
use rustc:: mir:: Place :: * ;
0 commit comments