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>
) -> Place<'tcx>
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).