Skip to content

Commit 17e04ac

Browse files
authored
Merge pull request #3916 from matthiaskrgr/rustup
rustup rust-lang/rust#59657
2 parents 25a1156 + c81e43b commit 17e04ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/redundant_clone.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ fn base_local_and_movability<'tcx>(
299299
place = &proj.base;
300300
deref = deref || matches!(proj.elem, mir::ProjectionElem::Deref);
301301
if !field && matches!(proj.elem, mir::ProjectionElem::Field(..)) {
302-
field = has_drop(cx, place.ty(&mir.local_decls, cx.tcx).to_ty(cx.tcx));
302+
field = has_drop(cx, place.ty(&mir.local_decls, cx.tcx).ty);
303303
}
304304
},
305305
_ => return None,

0 commit comments

Comments
 (0)