Skip to content

Commit

Permalink
Add super_traits_of docs
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Nov 27, 2020
1 parent b916ac6 commit af38d71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler/rustc_typeck/src/collect.rs
Expand Up @@ -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];
Expand Down

0 comments on commit af38d71

Please sign in to comment.