File tree 1 file changed +2
-2
lines changed
compiler/rustc_middle/src/ty
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2443,7 +2443,7 @@ impl<'tcx> TyCtxt<'tcx> {
2443
2443
/// Given the def_id of a Trait `trait_def_id` and the name of an associated item `assoc_name`
2444
2444
/// returns true if the `trait_def_id` defines an associated item of name `assoc_name`.
2445
2445
pub fn trait_may_define_assoc_item ( self , trait_def_id : DefId , assoc_name : Ident ) -> bool {
2446
- self . super_traits_of ( trait_def_id) . any ( |trait_did| {
2446
+ self . supertrait_def_ids ( trait_def_id) . any ( |trait_did| {
2447
2447
self . associated_items ( trait_did)
2448
2448
. filter_by_name_unhygienic ( assoc_name. name )
2449
2449
. any ( |item| self . hygienic_eq ( assoc_name, item. ident ( self ) , trait_did) )
@@ -2468,7 +2468,7 @@ impl<'tcx> TyCtxt<'tcx> {
2468
2468
/// does not compute the full elaborated super-predicates but just the set of def-ids. It is used
2469
2469
/// to identify which traits may define a given associated type to help avoid cycle errors.
2470
2470
/// Returns a `DefId` iterator.
2471
- fn super_traits_of ( self , trait_def_id : DefId ) -> impl Iterator < Item = DefId > + ' tcx {
2471
+ fn supertrait_def_ids ( self , trait_def_id : DefId ) -> impl Iterator < Item = DefId > + ' tcx {
2472
2472
let mut set = FxHashSet :: default ( ) ;
2473
2473
let mut stack = vec ! [ trait_def_id] ;
2474
2474
You can’t perform that action at this time.
0 commit comments