check::[−][src] upvar:: restrict_capture_precision
) -> (Place<'tcx>, UpvarCapture<'tcx>)
Truncate projections so that following rules are obeyed by the captured
- No Index projections are captured, since arrays are captured completely.
- No unsafe block is required to capture
placeReturns the truncated place and updated cature mode.