@@ -16,9 +16,10 @@ use rustc_span::hygiene::MacroKind;
16
16
use rustc_span:: symbol:: { kw, sym, Symbol } ;
17
17
18
18
use crate :: clean:: {
19
- self , clean_fn_decl_from_did_and_sig, clean_generics, clean_impl_item, clean_middle_field,
20
- clean_middle_ty, clean_trait_ref_with_bindings, clean_ty, clean_ty_generics, clean_variant_def,
21
- clean_visibility, utils, Attributes , AttributesExt , Clean , ImplKind , ItemId , Type , Visibility ,
19
+ self , clean_fn_decl_from_did_and_sig, clean_generics, clean_impl_item, clean_middle_assoc_item,
20
+ clean_middle_field, clean_middle_ty, clean_trait_ref_with_bindings, clean_ty,
21
+ clean_ty_generics, clean_variant_def, clean_visibility, utils, Attributes , AttributesExt ,
22
+ ImplKind , ItemId , Type , Visibility ,
22
23
} ;
23
24
use crate :: core:: DocContext ;
24
25
use crate :: formats:: item_type:: ItemType ;
@@ -217,7 +218,7 @@ pub(crate) fn build_external_trait(cx: &mut DocContext<'_>, did: DefId) -> clean
217
218
// which causes methods to have a `pub` prefix, which is invalid since items in traits
218
219
// can not have a visibility prefix. Thus we override the visibility here manually.
219
220
// See https://github.com/rust-lang/rust/issues/81274
220
- clean:: Item { visibility : Visibility :: Inherited , ..item . clean ( cx) }
221
+ clean:: Item { visibility : Visibility :: Inherited , ..clean_middle_assoc_item ( item , cx) }
221
222
} )
222
223
. collect ( ) ;
223
224
@@ -452,7 +453,7 @@ pub(crate) fn build_impl(
452
453
item. visibility ( tcx) . is_public ( )
453
454
}
454
455
} )
455
- . map ( |item| item . clean ( cx) )
456
+ . map ( |item| clean_middle_assoc_item ( item , cx) )
456
457
. collect :: < Vec < _ > > ( ) ,
457
458
clean:: enter_impl_trait ( cx, |cx| {
458
459
clean_ty_generics ( cx, tcx. generics_of ( did) , predicates)
0 commit comments