clippy_utils

Function peel_hir_expr_while

source
pub fn peel_hir_expr_while<'tcx>(
    expr: &'tcx Expr<'tcx>,
    f: impl FnMut(&'tcx Expr<'tcx>) -> Option<&'tcx Expr<'tcx>>,
) -> &'tcx Expr<'tcx>
Expand description

Peels of expressions while the given closure returns Some.