@@ -15,11 +15,11 @@ use rustc_span::symbol::{kw, sym, Symbol};
1515use super :: {
1616 collect_paths_for_type, document, ensure_trailing_slash, item_ty_to_strs, notable_traits_decl,
1717 render_assoc_item, render_assoc_items, render_attributes_in_code, render_attributes_in_pre,
18- render_impl , render_stability_since_raw, write_srclink, AssocItemLink , Context ,
18+ render_impl_summary , render_stability_since_raw, write_srclink, AssocItemLink , Context ,
1919} ;
2020use crate :: clean:: { self , GetDefId } ;
2121use crate :: formats:: item_type:: ItemType ;
22- use crate :: formats:: { AssocItemRender , Impl , RenderMode } ;
22+ use crate :: formats:: { AssocItemRender , Impl } ;
2323use crate :: html:: escape:: Escape ;
2424use crate :: html:: format:: { print_abi_with_space, print_where_clause, Buffer , PrintWithSpace } ;
2525use crate :: html:: highlight;
@@ -691,22 +691,17 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
691691 write_small_section_header ( w, "foreign-impls" , "Implementations on Foreign Types" , "" ) ;
692692
693693 for implementor in foreign {
694- let provided_methods = implementor. inner_impl ( ) . provided_trait_methods ( cx. tcx ( ) ) ;
695- let assoc_link =
696- AssocItemLink :: GotoSource ( implementor. impl_item . def_id , & provided_methods) ;
697- render_impl (
694+ let outer_version = implementor. impl_item . stable_since ( cx. tcx ( ) ) ;
695+ let outer_const_version = implementor. impl_item . const_stable_since ( cx. tcx ( ) ) ;
696+ render_impl_summary (
698697 w,
699698 cx,
700699 & implementor,
701- it,
702- assoc_link,
703- RenderMode :: Normal ,
704- implementor. impl_item . stable_since ( cx. tcx ( ) ) . as_deref ( ) ,
705- implementor. impl_item . const_stable_since ( cx. tcx ( ) ) . as_deref ( ) ,
700+ outer_version. as_deref ( ) ,
701+ outer_const_version. as_deref ( ) ,
706702 false ,
707703 None ,
708704 true ,
709- false ,
710705 & [ ] ,
711706 ) ;
712707 }
@@ -1320,19 +1315,17 @@ fn render_implementor(
13201315 } => implementor_dups[ & path. last ( ) ] . 1 ,
13211316 _ => false ,
13221317 } ;
1323- render_impl (
1318+ let outer_version = trait_. stable_since ( cx. tcx ( ) ) ;
1319+ let outer_const_version = trait_. const_stable_since ( cx. tcx ( ) ) ;
1320+ render_impl_summary (
13241321 w,
13251322 cx,
13261323 implementor,
1327- trait_,
1328- AssocItemLink :: Anchor ( None ) ,
1329- RenderMode :: Normal ,
1330- trait_. stable_since ( cx. tcx ( ) ) . as_deref ( ) ,
1331- trait_. const_stable_since ( cx. tcx ( ) ) . as_deref ( ) ,
1324+ outer_version. as_deref ( ) ,
1325+ outer_const_version. as_deref ( ) ,
13321326 false ,
13331327 Some ( use_absolute) ,
13341328 false ,
1335- false ,
13361329 aliases,
13371330 ) ;
13381331}
0 commit comments