@@ -699,7 +699,13 @@ fn short_item_info(
699
699
700
700
// Render the list of items inside one of the sections "Trait Implementations",
701
701
// "Auto Trait Implementations," "Blanket Trait Implementations" (on struct/enum pages).
702
- fn render_impls ( cx : & Context < ' _ > , w : & mut Buffer , impls : & [ & & Impl ] , containing_item : & clean:: Item ) {
702
+ fn render_impls (
703
+ cx : & Context < ' _ > ,
704
+ w : & mut Buffer ,
705
+ impls : & [ & & Impl ] ,
706
+ containing_item : & clean:: Item ,
707
+ toggle_open_by_default : bool ,
708
+ ) {
703
709
let tcx = cx. tcx ( ) ;
704
710
let mut rendered_impls = impls
705
711
. iter ( )
@@ -722,7 +728,7 @@ fn render_impls(cx: &Context<'_>, w: &mut Buffer, impls: &[&&Impl], containing_i
722
728
is_on_foreign_type : false ,
723
729
show_default_items : true ,
724
730
show_non_assoc_items : true ,
725
- toggle_open_by_default : true ,
731
+ toggle_open_by_default,
726
732
} ,
727
733
) ;
728
734
buffer. into_inner ( )
@@ -1143,7 +1149,7 @@ fn render_assoc_items_inner(
1143
1149
concrete. into_iter ( ) . partition ( |t| t. inner_impl ( ) . kind . is_blanket ( ) ) ;
1144
1150
1145
1151
let mut impls = Buffer :: empty_from ( w) ;
1146
- render_impls ( cx, & mut impls, & concrete, containing_item) ;
1152
+ render_impls ( cx, & mut impls, & concrete, containing_item, true ) ;
1147
1153
let impls = impls. into_inner ( ) ;
1148
1154
if !impls. is_empty ( ) {
1149
1155
write ! (
@@ -1165,7 +1171,7 @@ fn render_assoc_items_inner(
1165
1171
</h2>\
1166
1172
<div id=\" synthetic-implementations-list\" >",
1167
1173
) ;
1168
- render_impls ( cx, w, & synthetic, containing_item) ;
1174
+ render_impls ( cx, w, & synthetic, containing_item, false ) ;
1169
1175
w. write_str ( "</div>" ) ;
1170
1176
}
1171
1177
@@ -1177,7 +1183,7 @@ fn render_assoc_items_inner(
1177
1183
</h2>\
1178
1184
<div id=\" blanket-implementations-list\" >",
1179
1185
) ;
1180
- render_impls ( cx, w, & blanket_impl, containing_item) ;
1186
+ render_impls ( cx, w, & blanket_impl, containing_item, false ) ;
1181
1187
w. write_str ( "</div>" ) ;
1182
1188
}
1183
1189
}
0 commit comments