Skip to main content

resolve_instance

Function resolve_instance 

Source
pub(crate) fn resolve_instance<'tcx>(
    tcx: TyCtxt<'tcx>,
    caller: DefId,
    def_id: DefId,
    args: GenericArgs<'tcx>,
) -> Option<Instance<'tcx>>
Expand description

Resolve a FnDef(def_id, args) (already skip_binderd by the caller) to its monomorphized [Instance] in caller’s post-analysis typing env.