clippy_utils::ty

Function is_uninit_value_valid_for_ty

source
pub fn is_uninit_value_valid_for_ty<'tcx>(
    cx: &LateContext<'tcx>,
    ty: Ty<'tcx>,
) -> bool
Expand description

Checks if a given type looks safe to be uninitialized.