Skip to content

Commit

Permalink
Auto merge of #3916 - matthiaskrgr:rustup, r=oli-obk
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Apr 3, 2019
2 parents 25a1156 + c81e43b commit c2821d6
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 c2821d6

Please sign in to comment.