File tree 1 file changed +3
-3
lines changed
compiler/rustc_typeck/src
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1115,9 +1115,9 @@ fn super_predicates_that_define_assoc_type(
1115
1115
}
1116
1116
}
1117
1117
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 .
1118
+ /// Computes the def-ids of the transitive super-traits of `trait_def_id`. This (intentionally)
1119
+ /// does not compute the full elaborated super-predicates but just the set of def-ids. It is used
1120
+ /// to identify which traits may define a given associated type to help avoid cycle errors .
1121
1121
fn super_traits_of ( tcx : TyCtxt < ' _ > , trait_def_id : DefId ) -> FxHashSet < DefId > {
1122
1122
let mut set = FxHashSet :: default ( ) ;
1123
1123
let mut stack = vec ! [ trait_def_id] ;
You can’t perform that action at this time.
0 commit comments