clippy_utils::visitors

Function for_each_local_use_after_expr

Source
pub fn for_each_local_use_after_expr<'tcx, B>(
    cx: &LateContext<'tcx>,
    local_id: HirId,
    expr_id: HirId,
    f: impl FnMut(&'tcx Expr<'tcx>) -> ControlFlow<B>,
) -> ControlFlow<B>
Expand description

Runs the given function for each path expression referencing the given local which occur after the given expression.