Function clippy_utils::pat_is_wild

source ·
pub fn pat_is_wild<'tcx>(
    cx: &LateContext<'tcx>,
    pat: &'tcx PatKind<'_>,
    body: impl Visitable<'tcx>
) -> bool
Expand description

Returns true if the pattern is a PatWild, or is an ident prefixed with _ that is not locally used.