]> git.lizzy.rs Git - rust.git/commitdiff
rustup https://github.com/rust-lang/rust/pull/59657
authorMatthias Krüger <matthias.krueger@famsik.de>
Wed, 3 Apr 2019 08:48:54 +0000 (10:48 +0200)
committerMatthias Krüger <matthias.krueger@famsik.de>
Wed, 3 Apr 2019 08:48:54 +0000 (10:48 +0200)
commit: 4122d2221ec65232bc211a266d0796a4713e0d39

clippy_lints/src/redundant_clone.rs

index 086c76c20b6340e456f1a59a9e9b7a890b33fe9a..c764e0ceb837e5b7164160df0e6cc1dac7107f31 100644 (file)
@@ -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,