Skip to main content

monomorphize_instance

Function monomorphize_instance 

Source
pub(crate) fn monomorphize_instance<'tcx>(
    tcx: TyCtxt<'tcx>,
    def_id: DefId,
    param_id: DefId,
    concrete_ty: Ty<'tcx>,
) -> Instance<'tcx>
Expand description

Build a partially-monomorphized [Instance] for def_id, replacing one type parameter and leaving the others as parameters.