@@ -565,7 +565,7 @@ pub(super) fn super_predicates_of(
565565 implied_predicates_with_filter ( tcx, trait_def_id. to_def_id ( ) , PredicateFilter :: SelfOnly )
566566}
567567
568- pub ( super ) fn super_predicates_that_define_assoc_type (
568+ pub ( super ) fn super_predicates_that_define_assoc_item (
569569 tcx : TyCtxt < ' _ > ,
570570 ( trait_def_id, assoc_name) : ( DefId , Ident ) ,
571571) -> ty:: GenericPredicates < ' _ > {
@@ -640,7 +640,7 @@ pub(super) fn implied_predicates_with_filter(
640640 ) ,
641641 PredicateFilter :: SelfThatDefines ( assoc_name) => (
642642 // 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) ,
644644 // Include where clause bounds for `Self` that reference the associated name
645645 icx. type_parameter_bounds_in_generics (
646646 generics,
@@ -819,7 +819,7 @@ impl<'tcx> ItemCtxt<'tcx> {
819819 hir:: GenericBound :: Trait ( poly_trait_ref, _) => {
820820 let trait_ref = & poly_trait_ref. trait_ref ;
821821 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)
823823 } else {
824824 false
825825 }
0 commit comments