@@ -429,7 +429,7 @@ impl Item {
429
429
430
430
/// Convenience wrapper around [`Self::from_def_id_and_parts`] which converts
431
431
/// `hir_id` to a [`DefId`]
432
- pub fn from_hir_id_and_parts (
432
+ crate fn from_hir_id_and_parts (
433
433
hir_id : hir:: HirId ,
434
434
name : Option < Symbol > ,
435
435
kind : ItemKind ,
@@ -438,7 +438,7 @@ impl Item {
438
438
Item :: from_def_id_and_parts ( cx. tcx . hir ( ) . local_def_id ( hir_id) . to_def_id ( ) , name, kind, cx)
439
439
}
440
440
441
- pub fn from_def_id_and_parts (
441
+ crate fn from_def_id_and_parts (
442
442
def_id : DefId ,
443
443
name : Option < Symbol > ,
444
444
kind : ItemKind ,
@@ -456,7 +456,7 @@ impl Item {
456
456
)
457
457
}
458
458
459
- pub fn from_def_id_and_attrs_and_parts (
459
+ crate fn from_def_id_and_attrs_and_parts (
460
460
def_id : DefId ,
461
461
name : Option < Symbol > ,
462
462
kind : ItemKind ,
@@ -984,26 +984,26 @@ crate fn collapse_doc_fragments(doc_strings: &[DocFragment]) -> String {
984
984
#[ derive( Clone , Debug , PartialEq , Eq , Hash ) ]
985
985
crate struct ItemLink {
986
986
/// The original link written in the markdown
987
- pub ( crate ) link : String ,
987
+ crate link : String ,
988
988
/// The link text displayed in the HTML.
989
989
///
990
990
/// This may not be the same as `link` if there was a disambiguator
991
991
/// in an intra-doc link (e.g. \[`fn@f`\])
992
- pub ( crate ) link_text : String ,
993
- pub ( crate ) did : DefId ,
992
+ crate link_text : String ,
993
+ crate did : DefId ,
994
994
/// The url fragment to append to the link
995
- pub ( crate ) fragment : Option < UrlFragment > ,
995
+ crate fragment : Option < UrlFragment > ,
996
996
}
997
997
998
998
pub struct RenderedLink {
999
999
/// The text the link was original written as.
1000
1000
///
1001
1001
/// This could potentially include disambiguators and backticks.
1002
- pub ( crate ) original_text : String ,
1002
+ crate original_text : String ,
1003
1003
/// The text to display in the HTML
1004
- pub ( crate ) new_text : String ,
1004
+ crate new_text : String ,
1005
1005
/// The URL to put in the `href`
1006
- pub ( crate ) href : String ,
1006
+ crate href : String ,
1007
1007
}
1008
1008
1009
1009
/// The attributes on an [`Item`], including attributes like `#[derive(...)]` and `#[inline]`,
0 commit comments