Function rustc_typeck::check::upvar::adjust_for_move_closure[−][src]

fn adjust_for_move_closure<'tcx>(
    place: Place<'tcx>,
    kind: UpvarCapture<'tcx>
) -> (Place<'tcx>, UpvarCapture<'tcx>)
Expand description

Take ownership if data being accessed is owned by the variable used to access it (or if closure attempts to move data that it doesn’t own). Note: When taking ownership, only capture data found on the stack.