@@ -73,7 +73,6 @@ use crate::formats::cache::Cache;
73
73
use crate :: formats:: item_type:: ItemType ;
74
74
use crate :: formats:: { AssocItemRender , FormatRenderer , Impl , RenderMode } ;
75
75
use crate :: html:: escape:: Escape ;
76
- use crate :: html:: format:: fmt_impl_for_trait_page;
77
76
use crate :: html:: format:: Function ;
78
77
use crate :: html:: format:: { href, print_default_space, print_generic_bounds, WhereClause } ;
79
78
use crate :: html:: format:: { print_abi_with_space, Buffer , PrintWithSpace } ;
@@ -1138,7 +1137,7 @@ themePicker.onblur = handleThemeButtonsBlur;
1138
1137
None
1139
1138
} else {
1140
1139
Some ( Implementor {
1141
- text : imp. inner_impl ( ) . print ( cx. cache ( ) ) . to_string ( ) ,
1140
+ text : imp. inner_impl ( ) . print ( cx. cache ( ) , false ) . to_string ( ) ,
1142
1141
synthetic : imp. inner_impl ( ) . synthetic ,
1143
1142
types : collect_paths_for_type ( imp. inner_impl ( ) . for_ . clone ( ) , cx. cache ( ) ) ,
1144
1143
} )
@@ -2550,8 +2549,8 @@ fn bounds(t_bounds: &[clean::GenericBound], trait_alias: bool, cache: &Cache) ->
2550
2549
}
2551
2550
2552
2551
fn compare_impl < ' a , ' b > ( lhs : & ' a & & Impl , rhs : & ' b & & Impl , cache : & Cache ) -> Ordering {
2553
- let lhs = format ! ( "{}" , lhs. inner_impl( ) . print( cache) ) ;
2554
- let rhs = format ! ( "{}" , rhs. inner_impl( ) . print( cache) ) ;
2552
+ let lhs = format ! ( "{}" , lhs. inner_impl( ) . print( cache, false ) ) ;
2553
+ let rhs = format ! ( "{}" , rhs. inner_impl( ) . print( cache, false ) ) ;
2555
2554
2556
2555
// lhs and rhs are formatted as HTML, which may be unnecessary
2557
2556
compare_names ( & lhs, & rhs)
@@ -3698,7 +3697,7 @@ fn spotlight_decl(decl: &clean::FnDecl, cache: &Cache) -> String {
3698
3697
write ! (
3699
3698
& mut out,
3700
3699
"<span class=\" where fmt-newline\" >{}</span>" ,
3701
- impl_. print( cache)
3700
+ impl_. print( cache, false )
3702
3701
) ;
3703
3702
let t_did = impl_. trait_ . def_id_full ( cache) . unwrap ( ) ;
3704
3703
for it in & impl_. items {
@@ -3771,7 +3770,7 @@ fn render_impl(
3771
3770
} ;
3772
3771
if let Some ( use_absolute) = use_absolute {
3773
3772
write ! ( w, "<h3 id=\" {}\" class=\" impl\" {}><code class=\" in-band\" >" , id, aliases) ;
3774
- fmt_impl_for_trait_page ( & i . inner_impl ( ) , w, use_absolute , cx. cache ( ) ) ;
3773
+ write ! ( w, "{}" , i . inner_impl ( ) . print ( cx. cache( ) , use_absolute ) ) ;
3775
3774
if show_def_docs {
3776
3775
for it in & i. inner_impl ( ) . items {
3777
3776
if let clean:: TypedefItem ( ref tydef, _) = * it. kind {
@@ -3796,7 +3795,7 @@ fn render_impl(
3796
3795
"<h3 id=\" {}\" class=\" impl\" {}><code class=\" in-band\" >{}</code>" ,
3797
3796
id,
3798
3797
aliases,
3799
- i. inner_impl( ) . print( cx. cache( ) )
3798
+ i. inner_impl( ) . print( cx. cache( ) , false )
3800
3799
) ;
3801
3800
}
3802
3801
write ! ( w, "<a href=\" #{}\" class=\" anchor\" ></a>" , id) ;
0 commit comments