Skip to content

Commit 22e77df

Browse files
committed
1 parent fb33fad commit 22e77df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clippy_lints/src/redundant_clone.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -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)`.
213213
fn 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]))``.
237237
fn 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.
271271
fn 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

Comments
 (0)