Function rustc_trans::middle::typeck::astconv::instantiate_trait_refExperimental [-]  [+] [src]

pub fn instantiate_trait_ref<'tcx, AC: AstConv<'tcx>, RS: RegionScope>(this: &AC, rscope: &RS, ast_trait_ref: &TraitRef, self_ty: Option<&'tcx TyS<'tcx>>) -> Rc<TraitRef<'tcx>>

Instantiates the path for the given trait reference, assuming that it's bound to a valid trait type. Returns the def_id for the defining trait. Fails if the type is a type other than a trait type.