]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_const_eval/src/interpret/eval_context.rs
Rollup merge of #103439 - Nilstrieb:help-me-with-my-macro, r=estebank
[rust.git] / compiler / rustc_const_eval / src / interpret / eval_context.rs
index f7d64f6d4f48ae2be6f6d29a69b1fa73222f1fe6..ab82268dde3ab5898bce8cb11ccda94b43ec7bf9 100644 (file)
@@ -572,7 +572,7 @@ pub(super) fn size_and_align_of(
         metadata: &MemPlaceMeta<M::Provenance>,
         layout: &TyAndLayout<'tcx>,
     ) -> InterpResult<'tcx, Option<(Size, Align)>> {
-        if !layout.is_unsized() {
+        if layout.is_sized() {
             return Ok(Some((layout.size, layout.align.abi)));
         }
         match layout.ty.kind() {