3 use rustc::ty::subst::SubstsRef;
4 use rustc::hir::def_id::DefId;
6 pub fn resolve_and_get_fn<'tcx, Cx: CodegenMethods<'tcx>>(
9 substs: SubstsRef<'tcx>,
12 ty::Instance::resolve(
14 ty::ParamEnv::reveal_all(),
21 pub fn resolve_and_get_fn_for_vtable<'tcx,
22 Cx: Backend<'tcx> + MiscMethods<'tcx> + TypeMethods<'tcx>
26 substs: SubstsRef<'tcx>,
29 ty::Instance::resolve_for_vtable(
31 ty::ParamEnv::reveal_all(),