Skip to content

Commit

Permalink
Merge pull request #3916 from matthiaskrgr/rustup
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 authored Apr 3, 2019
2 parents 25a1156 + c81e43b commit 17e04ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/redundant_clone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 17e04ac

Please sign in to comment.