Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit af38d71

Browse files
committed
Add super_traits_of docs
1 parent b916ac6 commit af38d71

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_typeck/src/collect.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,9 @@ fn super_predicates_that_define_assoc_type(
11151115
}
11161116
}
11171117

1118+
/// Ensures that the super traits of the trait with a `DefId`
1119+
/// of `trait_def_id` are converted and stored. This also ensures that
1120+
/// the transitive super traits are converted.
11181121
fn super_traits_of(tcx: TyCtxt<'_>, trait_def_id: DefId) -> FxHashSet<DefId> {
11191122
let mut set = FxHashSet::default();
11201123
let mut stack = vec![trait_def_id];

0 commit comments

Comments
 (0)