[−][src]Function rustc_mir::shim::build_call_shim
fn build_call_shim<'a, 'tcx>(
tcx: TyCtxt<'a, 'tcx, 'tcx>,
def_id: DefId,
rcvr_adjustment: Adjustment,
call_kind: CallKind,
untuple_args: Option<&[Ty<'tcx>]>
) -> Mir<'tcx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Build a "call" shim for def_id
. The shim calls the
function specified by call_kind
, first adjusting its first
argument according to rcvr_adjustment
.
If untuple_args
is a vec of types, the second argument of the
function will be untupled as these types.