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

pub fn conv_existential_bounds<'tcx, AC: AstConv<'tcx>, RS: RegionScope>(this: &AC, rscope: &RS, span: Span, main_trait_refs: &[Rc<TraitRef<'tcx>>], ast_bounds: &[TyParamBound]) -> ExistentialBounds

Given an existential type like Foo+'a+Bar, this routine converts the 'a and Bar intos an ExistentialBounds struct. The main_trait_refs argument specifies the Foo -- it is absent for closures. Eventually this should all be normalized, I think, so that there is no "main trait ref" and instead we just have a flat list of bounds as the existential type.