]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/util/alignment.rs
Rollup merge of #69734 - tmiasko:di-enumerator, r=ecstatic-morse
[rust.git] / src / librustc_mir / util / alignment.rs
index e17c7a80f1a7617184e26ac3c6768a0dd1ae65bc..d7f2abfbe9943b8c9a316fb0b6150bcb3b837d34 100644 (file)
@@ -46,7 +46,7 @@ fn is_within_packed<'tcx, L>(tcx: TyCtxt<'tcx>, local_decls: &L, place: &Place<'
             // encountered a Deref, which is ABI-aligned
             ProjectionElem::Deref => break,
             ProjectionElem::Field(..) => {
-                let ty = Place::ty_from(&place.local, proj_base, local_decls, tcx).ty;
+                let ty = Place::ty_from(place.local, proj_base, local_decls, tcx).ty;
                 match ty.kind {
                     ty::Adt(def, _) if def.repr.packed() => return true,
                     _ => {}