@@ -2651,6 +2651,8 @@ fn item_trait(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
2651
2651
<ul class='item-list' id='synthetic-implementors-list'>
2652
2652
" ;
2653
2653
2654
+ let mut synthetic_types = Vec :: new ( ) ;
2655
+
2654
2656
if let Some ( implementors) = cache. implementors . get ( & it. def_id ) {
2655
2657
// The DefId is for the first Type found with that name. The bool is
2656
2658
// if any Types with the same name but different DefId have been found.
@@ -2706,6 +2708,9 @@ fn item_trait(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
2706
2708
if t. auto {
2707
2709
write ! ( w, "{}" , synthetic_impl_header) ?;
2708
2710
for implementor in synthetic {
2711
+ synthetic_types. extend (
2712
+ collect_paths_for_type ( implementor. inner_impl ( ) . for_ . clone ( ) )
2713
+ ) ;
2709
2714
render_implementor ( cx, implementor, w, & implementor_dups) ?;
2710
2715
}
2711
2716
write ! ( w, "</ul>" ) ?;
@@ -2716,13 +2721,13 @@ fn item_trait(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
2716
2721
write ! ( w, "{}" , impl_header) ?;
2717
2722
write ! ( w, "</ul>" ) ?;
2718
2723
2719
- write ! ( w, r#"<script type="text/javascript">window.inlined_types=new Set();</script>"# ) ?;
2720
-
2721
2724
if t. auto {
2722
2725
write ! ( w, "{}" , synthetic_impl_header) ?;
2723
2726
write ! ( w, "</ul>" ) ?;
2724
2727
}
2725
2728
}
2729
+ write ! ( w, r#"<script type="text/javascript">window.inlined_types=new Set({});</script>"# ,
2730
+ as_json( & synthetic_types) ) ?;
2726
2731
2727
2732
write ! ( w, r#"<script type="text/javascript" async
2728
2733
src="{root_path}/implementors/{path}/{ty}.{name}.js">
0 commit comments