clippy_utils

Function get_enclosing_loop_or_multi_call_closure

source
pub fn get_enclosing_loop_or_multi_call_closure<'tcx>(
    cx: &LateContext<'tcx>,
    expr: &Expr<'_>,
) -> Option<&'tcx Expr<'tcx>>
Expand description

Gets the loop or closure enclosing the given expression, if any.