@@ -2451,6 +2451,8 @@ fn item_trait(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
2451
2451
<ul class='item-list' id='synthetic-implementors-list'>
2452
2452
" ;
2453
2453
2454
+ let mut synthetic_types = Vec :: new ( ) ;
2455
+
2454
2456
if let Some ( implementors) = cache. implementors . get ( & it. def_id ) {
2455
2457
// The DefId is for the first Type found with that name. The bool is
2456
2458
// if any Types with the same name but different DefId have been found.
@@ -2506,6 +2508,9 @@ fn item_trait(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
2506
2508
if t. auto {
2507
2509
write ! ( w, "{}" , synthetic_impl_header) ?;
2508
2510
for implementor in synthetic {
2511
+ synthetic_types. extend (
2512
+ collect_paths_for_type ( implementor. inner_impl ( ) . for_ . clone ( ) )
2513
+ ) ;
2509
2514
render_implementor ( cx, implementor, w, & implementor_dups) ?;
2510
2515
}
2511
2516
write ! ( w, "</ul>" ) ?;
@@ -2516,13 +2521,13 @@ fn item_trait(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
2516
2521
write ! ( w, "{}" , impl_header) ?;
2517
2522
write ! ( w, "</ul>" ) ?;
2518
2523
2519
- write ! ( w, r#"<script type="text/javascript">window.inlined_types=new Set();</script>"# ) ?;
2520
-
2521
2524
if t. auto {
2522
2525
write ! ( w, "{}" , synthetic_impl_header) ?;
2523
2526
write ! ( w, "</ul>" ) ?;
2524
2527
}
2525
2528
}
2529
+ write ! ( w, r#"<script type="text/javascript">window.inlined_types=new Set({});</script>"# ,
2530
+ as_json( & synthetic_types) ) ?;
2526
2531
2527
2532
write ! ( w, r#"<script type="text/javascript" async
2528
2533
src="{root_path}/implementors/{path}/{ty}.{name}.js">
0 commit comments