Skip to content

Commit ad3f9df

Browse files
committed
sanity check
1 parent 9f94af5 commit ad3f9df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_ty_utils/src/layout.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ fn layout_of<'tcx>(
5959

6060
sanity_check_layout(&cx, &layout);
6161

62+
// FIXME: move this into the sanity check.
63+
debug_assert_eq!(tcx.align_of(query).unwrap(), layout.align);
64+
6265
Ok(layout)
6366
}
6467

0 commit comments

Comments
 (0)