rustc_ty_utils::layout::invariant

Function layout_sanity_check

Source
pub(super) fn layout_sanity_check<'tcx>(
    cx: &LayoutCx<'tcx>,
    layout: &TyAndLayout<'tcx>,
)
Expand description

Enforce some basic invariants on layouts.