From c81e43b92c83bca75337ac26a296b909a6a98ab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Wed, 3 Apr 2019 10:48:54 +0200 Subject: [PATCH] rustup https://github.com/rust-lang/rust/pull/59657 commit: 4122d2221ec65232bc211a266d0796a4713e0d39 --- clippy_lints/src/redundant_clone.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/redundant_clone.rs b/clippy_lints/src/redundant_clone.rs index 086c76c20..c764e0ceb 100644 --- a/clippy_lints/src/redundant_clone.rs +++ b/clippy_lints/src/redundant_clone.rs @@ -299,7 +299,7 @@ fn base_local_and_movability<'tcx>( place = &proj.base; deref = deref || matches!(proj.elem, mir::ProjectionElem::Deref); if !field && matches!(proj.elem, mir::ProjectionElem::Field(..)) { - 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); } }, _ => return None,