Function clippy_utils::get_enclosing_loop_or_closure
source · [−]pub fn get_enclosing_loop_or_closure<'tcx>(
tcx: TyCtxt<'tcx>,
expr: &Expr<'_>
) -> Option<&'tcx Expr<'tcx>>Expand description
Gets the loop or closure enclosing the given expression, if any.