clippy_utils

Function peel_hir_expr_refs

Source
pub fn peel_hir_expr_refs<'a>(expr: &'a Expr<'a>) -> (&'a Expr<'a>, usize)
Expand description

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