Function rustc_mir_transform::shim::build_clone_shim
source · fn build_clone_shim<'tcx>(
tcx: TyCtxt<'tcx>,
def_id: DefId,
self_ty: Ty<'tcx>
) -> Body<'tcx>
Expand description
Builds a Clone::clone
shim for self_ty
. Here, def_id
is Clone::clone
.