We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 25a1156 + c81e43b commit 17e04acCopy full SHA for 17e04ac
clippy_lints/src/redundant_clone.rs
@@ -299,7 +299,7 @@ fn base_local_and_movability<'tcx>(
299
place = &proj.base;
300
deref = deref || matches!(proj.elem, mir::ProjectionElem::Deref);
301
if !field && matches!(proj.elem, mir::ProjectionElem::Field(..)) {
302
- field = has_drop(cx, place.ty(&mir.local_decls, cx.tcx).to_ty(cx.tcx));
+ field = has_drop(cx, place.ty(&mir.local_decls, cx.tcx).ty);
303
}
304
},
305
_ => return None,
0 commit comments