From af38d71b173616bb08133207d794fab51d45aa0c Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Sun, 22 Nov 2020 20:12:20 -0300 Subject: [PATCH] Add super_traits_of docs --- compiler/rustc_typeck/src/collect.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/rustc_typeck/src/collect.rs b/compiler/rustc_typeck/src/collect.rs index 32527a7793423..6cd4acf5de62c 100644 --- a/compiler/rustc_typeck/src/collect.rs +++ b/compiler/rustc_typeck/src/collect.rs @@ -1115,6 +1115,9 @@ fn super_predicates_that_define_assoc_type( } } +/// Ensures that the super traits of the trait with a `DefId` +/// of `trait_def_id` are converted and stored. This also ensures that +/// the transitive super traits are converted. fn super_traits_of(tcx: TyCtxt<'_>, trait_def_id: DefId) -> FxHashSet { let mut set = FxHashSet::default(); let mut stack = vec![trait_def_id];