rustc_ty_utils::layout_sanity_check

Function sanity_check_layout

source
pub(crate) fn sanity_check_layout<'tcx>(
    cx: &LayoutCx<'tcx>,
    layout: &TyAndLayout<'tcx>,
)
Expand description

Enforce some basic invariants on layouts.