@@ -565,7 +565,7 @@ pub(super) fn super_predicates_of(
565
565
implied_predicates_with_filter ( tcx, trait_def_id. to_def_id ( ) , PredicateFilter :: SelfOnly )
566
566
}
567
567
568
- pub ( super ) fn super_predicates_that_define_assoc_type (
568
+ pub ( super ) fn super_predicates_that_define_assoc_item (
569
569
tcx : TyCtxt < ' _ > ,
570
570
( trait_def_id, assoc_name) : ( DefId , Ident ) ,
571
571
) -> ty:: GenericPredicates < ' _ > {
@@ -640,7 +640,7 @@ pub(super) fn implied_predicates_with_filter(
640
640
) ,
641
641
PredicateFilter :: SelfThatDefines ( assoc_name) => (
642
642
// Convert the bounds that follow the colon (or equal) that reference the associated name
643
- icx. astconv ( ) . compute_bounds_that_match_assoc_type ( self_param_ty, bounds, assoc_name) ,
643
+ icx. astconv ( ) . compute_bounds_that_match_assoc_item ( self_param_ty, bounds, assoc_name) ,
644
644
// Include where clause bounds for `Self` that reference the associated name
645
645
icx. type_parameter_bounds_in_generics (
646
646
generics,
@@ -819,7 +819,7 @@ impl<'tcx> ItemCtxt<'tcx> {
819
819
hir:: GenericBound :: Trait ( poly_trait_ref, _) => {
820
820
let trait_ref = & poly_trait_ref. trait_ref ;
821
821
if let Some ( trait_did) = trait_ref. trait_def_id ( ) {
822
- self . tcx . trait_may_define_assoc_type ( trait_did, assoc_name)
822
+ self . tcx . trait_may_define_assoc_item ( trait_did, assoc_name)
823
823
} else {
824
824
false
825
825
}
0 commit comments