]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_codegen_cranelift/src/unsize.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / compiler / rustc_codegen_cranelift / src / unsize.rs
index 042583cd5720fa07b7cac71d3928a302f7d3be0b..b9d379c6117c91d846e3620649c2e40f951daf9f 100644 (file)
@@ -31,9 +31,7 @@ pub(crate) fn unsized_info<'tcx>(
             // change to the vtable.
             old_info.expect("unsized_info: missing old info for trait upcast")
         }
-        (_, &ty::Dynamic(ref data, ..)) => {
-            crate::vtable::get_vtable(fx, fx.layout_of(source), data.principal())
-        }
+        (_, &ty::Dynamic(ref data, ..)) => crate::vtable::get_vtable(fx, source, data.principal()),
         _ => bug!("unsized_info: invalid unsizing {:?} -> {:?}", source, target),
     }
 }