pub(crate) fn validate_scalar_in_layout<'tcx>( tcx: TyCtxt<'tcx>, scalar: ScalarInt, ty: Ty<'tcx>, ) -> bool