commit: 4122d2221ec65232bc211a266d0796a4713e0d39
This commit is contained in:
Matthias Krüger 2019-04-03 10:48:54 +02:00
parent 25a11568fc
commit c81e43b92c

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,