clippy_utils

Function peel_hir_pat_refs

Source
pub fn peel_hir_pat_refs<'a>(pat: &'a Pat<'a>) -> (&'a Pat<'a>, usize)
Expand description

Peels off all references on the pattern. Returns the underlying pattern and the number of references removed.