clippy_utils::ty

Function is_must_use_ty

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