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