@@ -411,12 +411,6 @@ impl Item {
411411 crate :: passes:: span_of_attrs ( & self . attrs ) . unwrap_or_else ( || self . span ( tcx) . inner ( ) )
412412 }
413413
414- /// Finds the `doc` attribute as a NameValue and returns the corresponding
415- /// value found.
416- crate fn doc_value ( & self ) -> Option < String > {
417- self . attrs . doc_value ( )
418- }
419-
420414 /// Convenience wrapper around [`Self::from_def_id_and_parts`] which converts
421415 /// `hir_id` to a [`DefId`]
422416 pub fn from_hir_id_and_parts (
@@ -468,8 +462,8 @@ impl Item {
468462
469463 /// Finds all `doc` attributes as NameValues and returns their corresponding values, joined
470464 /// with newlines.
471- crate fn collapsed_doc_value ( & self ) -> Option < String > {
472- self . attrs . collapsed_doc_value ( )
465+ crate fn doc_value ( & self ) -> Option < String > {
466+ self . attrs . doc_value ( )
473467 }
474468
475469 crate fn links ( & self , cx : & Context < ' _ > ) -> Vec < RenderedLink > {
@@ -1074,16 +1068,10 @@ impl Attributes {
10741068 Attributes { doc_strings, other_attrs }
10751069 }
10761070
1077- /// Finds the `doc` attribute as a NameValue and returns the corresponding
1078- /// value found.
1079- crate fn doc_value ( & self ) -> Option < String > {
1080- self . collapsed_doc_value ( )
1081- }
1082-
10831071 /// Return the doc-comments on this item, grouped by the module they came from.
10841072 ///
10851073 /// The module can be different if this is a re-export with added documentation.
1086- crate fn collapsed_doc_value_by_module_level ( & self ) -> FxHashMap < Option < DefId > , String > {
1074+ crate fn doc_value_by_module_level ( & self ) -> FxHashMap < Option < DefId > , String > {
10871075 let mut ret = FxHashMap :: default ( ) ;
10881076
10891077 for new_frag in self . doc_strings . iter ( ) {
@@ -1095,7 +1083,7 @@ impl Attributes {
10951083
10961084 /// Finds all `doc` attributes as NameValues and returns their corresponding values, joined
10971085 /// with newlines.
1098- crate fn collapsed_doc_value ( & self ) -> Option < String > {
1086+ crate fn doc_value ( & self ) -> Option < String > {
10991087 if self . doc_strings . is_empty ( ) { None } else { Some ( self . doc_strings . iter ( ) . collect ( ) ) }
11001088 }
11011089
0 commit comments