@@ -15,11 +15,11 @@ use rustc_span::symbol::{kw, sym, Symbol};
15
15
use super :: {
16
16
collect_paths_for_type, document, ensure_trailing_slash, item_ty_to_strs, notable_traits_decl,
17
17
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 ,
19
19
} ;
20
20
use crate :: clean:: { self , GetDefId } ;
21
21
use crate :: formats:: item_type:: ItemType ;
22
- use crate :: formats:: { AssocItemRender , Impl , RenderMode } ;
22
+ use crate :: formats:: { AssocItemRender , Impl } ;
23
23
use crate :: html:: escape:: Escape ;
24
24
use crate :: html:: format:: { print_abi_with_space, print_where_clause, Buffer , PrintWithSpace } ;
25
25
use crate :: html:: highlight;
@@ -691,22 +691,17 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
691
691
write_small_section_header ( w, "foreign-impls" , "Implementations on Foreign Types" , "" ) ;
692
692
693
693
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 (
698
697
w,
699
698
cx,
700
699
& 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 ( ) ,
706
702
false ,
707
703
None ,
708
704
true ,
709
- false ,
710
705
& [ ] ,
711
706
) ;
712
707
}
@@ -1320,19 +1315,17 @@ fn render_implementor(
1320
1315
} => implementor_dups[ & path. last ( ) ] . 1 ,
1321
1316
_ => false ,
1322
1317
} ;
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 (
1324
1321
w,
1325
1322
cx,
1326
1323
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 ( ) ,
1332
1326
false ,
1333
1327
Some ( use_absolute) ,
1334
1328
false ,
1335
- false ,
1336
1329
aliases,
1337
1330
) ;
1338
1331
}
0 commit comments