@@ -698,7 +698,7 @@ fn build_index(krate: &clean::Crate, cache: &mut Cache) -> String {
698
698
ty : item. type_ ( ) ,
699
699
name : item. name . clone ( ) . unwrap ( ) ,
700
700
path : fqp[ ..fqp. len ( ) - 1 ] . join ( "::" ) ,
701
- desc : plain_summary_line ( item. doc_value ( ) ) ,
701
+ desc : plain_summary_line_short ( item. doc_value ( ) ) ,
702
702
parent : Some ( did) ,
703
703
parent_idx : None ,
704
704
search_type : get_index_search_type ( & item) ,
@@ -736,7 +736,7 @@ fn build_index(krate: &clean::Crate, cache: &mut Cache) -> String {
736
736
}
737
737
738
738
let crate_doc = krate. module . as_ref ( ) . map ( |module| {
739
- plain_summary_line ( module. doc_value ( ) )
739
+ plain_summary_line_short ( module. doc_value ( ) )
740
740
} ) . unwrap_or ( String :: new ( ) ) ;
741
741
742
742
let mut crate_data = BTreeMap :: new ( ) ;
@@ -1481,7 +1481,7 @@ impl DocFolder for Cache {
1481
1481
ty : item. type_ ( ) ,
1482
1482
name : s. to_string ( ) ,
1483
1483
path : path. join ( "::" ) ,
1484
- desc : plain_summary_line ( item. doc_value ( ) ) ,
1484
+ desc : plain_summary_line_short ( item. doc_value ( ) ) ,
1485
1485
parent,
1486
1486
parent_idx : None ,
1487
1487
search_type : get_index_search_type ( & item) ,
@@ -1512,7 +1512,8 @@ impl DocFolder for Cache {
1512
1512
clean:: FunctionItem ( ..) | clean:: ModuleItem ( ..) |
1513
1513
clean:: ForeignFunctionItem ( ..) | clean:: ForeignStaticItem ( ..) |
1514
1514
clean:: ConstantItem ( ..) | clean:: StaticItem ( ..) |
1515
- clean:: UnionItem ( ..) | clean:: ForeignTypeItem | clean:: MacroItem ( ..)
1515
+ clean:: UnionItem ( ..) | clean:: ForeignTypeItem |
1516
+ clean:: MacroItem ( ..) | clean:: ProcMacroItem ( ..)
1516
1517
if !self . stripped_mod => {
1517
1518
// Re-exported items mean that the same id can show up twice
1518
1519
// in the rustdoc ast that we're looking at. We know,
@@ -1673,7 +1674,7 @@ impl<'a> Cache {
1673
1674
ty : item. type_ ( ) ,
1674
1675
name : item_name. to_string ( ) ,
1675
1676
path : path. clone ( ) ,
1676
- desc : plain_summary_line ( item. doc_value ( ) ) ,
1677
+ desc : plain_summary_line_short ( item. doc_value ( ) ) ,
1677
1678
parent : None ,
1678
1679
parent_idx : None ,
1679
1680
search_type : get_index_search_type ( & item) ,
@@ -2388,7 +2389,13 @@ fn shorter<'a>(s: Option<&'a str>) -> String {
2388
2389
#[ inline]
2389
2390
fn plain_summary_line ( s : Option < & str > ) -> String {
2390
2391
let line = shorter ( s) . replace ( "\n " , " " ) ;
2391
- markdown:: plain_summary_line ( & line[ ..] )
2392
+ markdown:: plain_summary_line_full ( & line[ ..] , false )
2393
+ }
2394
+
2395
+ #[ inline]
2396
+ fn plain_summary_line_short ( s : Option < & str > ) -> String {
2397
+ let line = shorter ( s) . replace ( "\n " , " " ) ;
2398
+ markdown:: plain_summary_line_full ( & line[ ..] , true )
2392
2399
}
2393
2400
2394
2401
fn document ( w : & mut fmt:: Formatter , cx : & Context , item : & clean:: Item ) -> fmt:: Result {
0 commit comments