Function rustc_typeck::check::upvar::enable_precise_capture[][src]

fn enable_precise_capture(tcx: TyCtxt<'_>, span: Span) -> bool
Expand description

Precise capture is enabled if the feature gate capture_disjoint_fields is enabled or if user is using Rust Edition 2021 or higher.

span is the span of the closure.