Add super_traits_of docs
This commit is contained in:
parent
b916ac6322
commit
af38d71b17
1 changed files with 3 additions and 0 deletions
|
@ -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<DefId> {
|
||||
let mut set = FxHashSet::default();
|
||||
let mut stack = vec![trait_def_id];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue