@@ -73,7 +73,6 @@ use crate::formats::cache::Cache;
7373use crate :: formats:: item_type:: ItemType ;
7474use crate :: formats:: { AssocItemRender , FormatRenderer , Impl , RenderMode } ;
7575use crate :: html:: escape:: Escape ;
76- use crate :: html:: format:: fmt_impl_for_trait_page;
7776use crate :: html:: format:: Function ;
7877use crate :: html:: format:: { href, print_default_space, print_generic_bounds, WhereClause } ;
7978use crate :: html:: format:: { print_abi_with_space, Buffer , PrintWithSpace } ;
@@ -1138,7 +1137,7 @@ themePicker.onblur = handleThemeButtonsBlur;
11381137 None
11391138 } else {
11401139 Some ( Implementor {
1141- text : imp. inner_impl ( ) . print ( cx. cache ( ) ) . to_string ( ) ,
1140+ text : imp. inner_impl ( ) . print ( cx. cache ( ) , false ) . to_string ( ) ,
11421141 synthetic : imp. inner_impl ( ) . synthetic ,
11431142 types : collect_paths_for_type ( imp. inner_impl ( ) . for_ . clone ( ) , cx. cache ( ) ) ,
11441143 } )
@@ -2550,8 +2549,8 @@ fn bounds(t_bounds: &[clean::GenericBound], trait_alias: bool, cache: &Cache) ->
25502549}
25512550
25522551fn 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 ) ) ;
25552554
25562555 // lhs and rhs are formatted as HTML, which may be unnecessary
25572556 compare_names ( & lhs, & rhs)
@@ -3698,7 +3697,7 @@ fn spotlight_decl(decl: &clean::FnDecl, cache: &Cache) -> String {
36983697 write ! (
36993698 & mut out,
37003699 "<span class=\" where fmt-newline\" >{}</span>" ,
3701- impl_. print( cache)
3700+ impl_. print( cache, false )
37023701 ) ;
37033702 let t_did = impl_. trait_ . def_id_full ( cache) . unwrap ( ) ;
37043703 for it in & impl_. items {
@@ -3771,7 +3770,7 @@ fn render_impl(
37713770 } ;
37723771 if let Some ( use_absolute) = use_absolute {
37733772 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 ) ) ;
37753774 if show_def_docs {
37763775 for it in & i. inner_impl ( ) . items {
37773776 if let clean:: TypedefItem ( ref tydef, _) = * it. kind {
@@ -3796,7 +3795,7 @@ fn render_impl(
37963795 "<h3 id=\" {}\" class=\" impl\" {}><code class=\" in-band\" >{}</code>" ,
37973796 id,
37983797 aliases,
3799- i. inner_impl( ) . print( cx. cache( ) )
3798+ i. inner_impl( ) . print( cx. cache( ) , false )
38003799 ) ;
38013800 }
38023801 write ! ( w, "<a href=\" #{}\" class=\" anchor\" ></a>" , id) ;
0 commit comments