Function clippy_utils::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.