Function rustc_typeck::check::upvar::restrict_repr_packed_field_ref_capture [−][src]
fn restrict_repr_packed_field_ref_capture<'tcx>(
tcx: TyCtxt<'tcx>,
param_env: ParamEnv<'tcx>,
place: &Place<'tcx>,
curr_borrow_kind: UpvarCapture<'tcx>
) -> (Place<'tcx>, UpvarCapture<'tcx>)Expand description
Truncate the capture so that the place being borrowed is in accordance with RFC 1240,
which states that it’s unsafe to take a reference into a struct marked repr(packed).
