Function rustc_middle::traits::util::supertraits
source · pub fn supertraits<'tcx>(
tcx: TyCtxt<'tcx>,
trait_ref: PolyTraitRef<'tcx>
) -> impl Iterator<Item = PolyTraitRef<'tcx>>
Expand description
Given a PolyTraitRef, get the PolyTraitRefs of the trait’s (transitive) supertraits.
A simplified version of the same function at rustc_infer::traits::util::supertraits
.