pub fn is_normalizable<'tcx>(
cx: &LateContext<'tcx>,
param_env: ParamEnv<'tcx>,
ty: Ty<'tcx>,
) -> bool
Expand description
Checks if Ty
is normalizable. This function is useful
to avoid crashes on layout_of
.
pub fn is_normalizable<'tcx>(
cx: &LateContext<'tcx>,
param_env: ParamEnv<'tcx>,
ty: Ty<'tcx>,
) -> bool
Checks if Ty
is normalizable. This function is useful
to avoid crashes on layout_of
.