Function rustc::middle::traits::obligations_for_genericsExperimental
[-]
[+]
[src]
pub fn obligations_for_generics<'tcx>(tcx: &ctxt<'tcx>, cause: ObligationCause<'tcx>, generic_bounds: &GenericBounds<'tcx>, type_substs: &VecPerParamSpace<Ty<'tcx>>) -> VecPerParamSpace<Obligation<'tcx>>
Given generic bounds from an impl like:
impl
along with the bindings for the types A and B (e.g.,
<A=A0, B=B0>), yields a result like
[[Foo for A0, Bar for B0, Qux for B0], [], []]
Expects that generic_bounds have already been fully
substituted, late-bound regions liberated and so forth,
so that they are in the same namespace as type_substs.