clippy_utils::ty

Function is_normalizable

source
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.