@@ -38,7 +38,7 @@ type Attrs<'hir> = &'hir [ast::Attribute];
3838/// and `Some` of a vector of items if it was successfully expanded.
3939///
4040/// `parent_module` refers to the parent of the *re-export*, not the original item.
41- crate fn try_inline (
41+ pub ( crate ) fn try_inline (
4242 cx : & mut DocContext < ' _ > ,
4343 parent_module : DefId ,
4444 import_def_id : Option < DefId > ,
@@ -134,7 +134,7 @@ crate fn try_inline(
134134 Some ( ret)
135135}
136136
137- crate fn try_inline_glob (
137+ pub ( crate ) fn try_inline_glob (
138138 cx : & mut DocContext < ' _ > ,
139139 res : Res ,
140140 visited : & mut FxHashSet < DefId > ,
@@ -154,15 +154,15 @@ crate fn try_inline_glob(
154154 }
155155}
156156
157- crate fn load_attrs < ' hir > ( cx : & DocContext < ' hir > , did : DefId ) -> Attrs < ' hir > {
157+ pub ( crate ) fn load_attrs < ' hir > ( cx : & DocContext < ' hir > , did : DefId ) -> Attrs < ' hir > {
158158 cx. tcx . get_attrs_unchecked ( did)
159159}
160160
161161/// Record an external fully qualified name in the external_paths cache.
162162///
163163/// These names are used later on by HTML rendering to generate things like
164164/// source links back to the original item.
165- crate fn record_extern_fqn ( cx : & mut DocContext < ' _ > , did : DefId , kind : ItemType ) {
165+ pub ( crate ) fn record_extern_fqn ( cx : & mut DocContext < ' _ > , did : DefId , kind : ItemType ) {
166166 let crate_name = cx. tcx . crate_name ( did. krate ) ;
167167
168168 let relative =
@@ -190,7 +190,7 @@ crate fn record_extern_fqn(cx: &mut DocContext<'_>, did: DefId, kind: ItemType)
190190 }
191191}
192192
193- crate fn build_external_trait ( cx : & mut DocContext < ' _ > , did : DefId ) -> clean:: Trait {
193+ pub ( crate ) fn build_external_trait ( cx : & mut DocContext < ' _ > , did : DefId ) -> clean:: Trait {
194194 let trait_items = cx
195195 . tcx
196196 . associated_items ( did)
@@ -274,7 +274,7 @@ fn build_type_alias(cx: &mut DocContext<'_>, did: DefId) -> clean::Typedef {
274274}
275275
276276/// Builds all inherent implementations of an ADT (struct/union/enum) or Trait item/path/reexport.
277- crate fn build_impls (
277+ pub ( crate ) fn build_impls (
278278 cx : & mut DocContext < ' _ > ,
279279 parent_module : Option < DefId > ,
280280 did : DefId ,
@@ -318,7 +318,7 @@ fn merge_attrs(
318318}
319319
320320/// Inline an `impl`, inherent or of a trait. The `did` must be for an `impl`.
321- crate fn build_impl (
321+ pub ( crate ) fn build_impl (
322322 cx : & mut DocContext < ' _ > ,
323323 parent_module : Option < DefId > ,
324324 did : DefId ,
@@ -565,7 +565,7 @@ fn build_module(
565565 clean:: Module { items, span }
566566}
567567
568- crate fn print_inlined_const ( tcx : TyCtxt < ' _ > , did : DefId ) -> String {
568+ pub ( crate ) fn print_inlined_const ( tcx : TyCtxt < ' _ > , did : DefId ) -> String {
569569 if let Some ( did) = did. as_local ( ) {
570570 let hir_id = tcx. hir ( ) . local_def_id_to_hir_id ( did) ;
571571 rustc_hir_pretty:: id_to_string ( & tcx. hir ( ) , hir_id)
@@ -670,7 +670,7 @@ fn separate_supertrait_bounds(
670670 ( g, ty_bounds)
671671}
672672
673- crate fn record_extern_trait ( cx : & mut DocContext < ' _ > , did : DefId ) {
673+ pub ( crate ) fn record_extern_trait ( cx : & mut DocContext < ' _ > , did : DefId ) {
674674 if did. is_local ( ) {
675675 return ;
676676 }
0 commit comments