rustc_const_eval::util::check_validity_requirement

Function check_validity_requirement_lax

source
fn check_validity_requirement_lax<'tcx>(
    this: TyAndLayout<'tcx>,
    cx: &LayoutCx<'tcx>,
    init_kind: ValidityRequirement,
) -> Result<bool, &'tcx LayoutError<'tcx>>
Expand description

Implements the ‘lax’ (default) version of the check_validity_requirement checks; see that function for details.