Function rustc::middle::typeck::astconv::instantiate_trait_refExperimental
[-]
[+]
[src]
pub fn instantiate_trait_ref<'tcx, AC, RS>(this: &AC, rscope: &RS, ast_trait_ref: &TraitRef, self_ty: Option<Ty<'tcx>>) -> Rc<TraitRef<'tcx>> where AC: AstConv<'tcx>, RS: RegionScope
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.