@@ -1737,8 +1737,8 @@ pub(crate) fn render_impl_summary(
17371737 // in documentation pages for trait with automatic implementations like "Send" and "Sync".
17381738 aliases : & [ String ] ,
17391739) {
1740- let id =
1741- cx. derive_id ( get_id_for_impl ( & i . inner_impl ( ) . for_ , i . inner_impl ( ) . trait_ . as_ref ( ) , cx) ) ;
1740+ let inner_impl = i . inner_impl ( ) ;
1741+ let id = cx. derive_id ( get_id_for_impl ( & inner_impl. for_ , inner_impl. trait_ . as_ref ( ) , cx) ) ;
17421742 let aliases = if aliases. is_empty ( ) {
17431743 String :: new ( )
17441744 } else {
@@ -1750,9 +1750,9 @@ pub(crate) fn render_impl_summary(
17501750 write ! ( w, "<h3 class=\" code-header in-band\" >" ) ;
17511751
17521752 if let Some ( use_absolute) = use_absolute {
1753- write ! ( w, "{}" , i . inner_impl( ) . print( use_absolute, cx) ) ;
1753+ write ! ( w, "{}" , inner_impl. print( use_absolute, cx) ) ;
17541754 if show_def_docs {
1755- for it in & i . inner_impl ( ) . items {
1755+ for it in & inner_impl. items {
17561756 if let clean:: AssocTypeItem ( ref tydef, ref _bounds) = * it. kind {
17571757 w. write_str ( "<span class=\" where fmt-newline\" > " ) ;
17581758 assoc_type (
@@ -1770,11 +1770,11 @@ pub(crate) fn render_impl_summary(
17701770 }
17711771 }
17721772 } else {
1773- write ! ( w, "{}" , i . inner_impl( ) . print( false , cx) ) ;
1773+ write ! ( w, "{}" , inner_impl. print( false , cx) ) ;
17741774 }
17751775 write ! ( w, "</h3>" ) ;
17761776
1777- let is_trait = i . inner_impl ( ) . trait_ . is_some ( ) ;
1777+ let is_trait = inner_impl. trait_ . is_some ( ) ;
17781778 if is_trait {
17791779 if let Some ( portability) = portability ( & i. impl_item , Some ( parent) ) {
17801780 write ! ( w, "<span class=\" item-info\" >{}</span>" , portability) ;
0 commit comments