rustc_ty_utils::layout::invariant

Function partially_check_layout

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

Enforce some basic invariants on layouts.