Merge pull request #3916 from matthiaskrgr/rustup

rustup https://github.com/rust-lang/rust/pull/59657
This commit is contained in:
Philipp Krones 2019-04-03 11:43:26 +02:00 committed by GitHub
commit 17e04ac751
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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,