rustc_mir_transform::shim

Function build_call_shim

source
fn build_call_shim<'tcx>(
    tcx: TyCtxt<'tcx>,
    instance: InstanceKind<'tcx>,
    rcvr_adjustment: Option<Adjustment>,
    call_kind: CallKind<'tcx>,
) -> Body<'tcx>
Expand description

Builds a “call” shim for instance. The shim calls the function specified by call_kind, first adjusting its first argument according to rcvr_adjustment.