pub fn is_upvar_in_closure( cx: &LateContext<'_>, closure: &Closure<'_>, local_id: HirId, ) -> bool
Checks whether a local identified by local_id is captured as an upvar by the given closure.
local_id
closure