summary refs log tree commit diff
path: root/src/librustdoc/html/render
diff options
context:
space:
mode:
authorNoah Lev <camelidcamel@gmail.com>2021-12-27 18:59:27 -0800
committerNoah Lev <camelidcamel@gmail.com>2021-12-27 18:59:27 -0800
commitbd6692c50dd97a5679dbe0c8f23cc1b844c4cefe (patch)
treef4bd341472f43c0ceb861883b40cb343da08724c /src/librustdoc/html/render
parent2b801dcdd303e3e2a92e255d8cfb9427800403e5 (diff)
downloadrust-bd6692c50dd97a5679dbe0c8f23cc1b844c4cefe.tar.gz
rust-bd6692c50dd97a5679dbe0c8f23cc1b844c4cefe.zip
Make `search_index` functions private where possible
Now the only two crate-public items are `build_index` and
`get_index_search_type` (because for some reason the latter is also used
in `formats::cache`).
Diffstat (limited to 'src/librustdoc/html/render')
-rw-r--r--src/librustdoc/html/render/search_index.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/render/search_index.rs b/src/librustdoc/html/render/search_index.rs
index 787f047790a..e03f96aeb47 100644
--- a/src/librustdoc/html/render/search_index.rs
+++ b/src/librustdoc/html/render/search_index.rs
@@ -237,7 +237,7 @@ fn get_index_type_name(clean_type: &clean::Type, accept_generic: bool) -> Option
 ///
 /// Important note: It goes through generics recursively. So if you have
 /// `T: Option<Result<(), ()>>`, it'll go into `Option` and then into `Result`.
-crate fn get_real_types<'tcx>(
+fn get_real_types<'tcx>(
     generics: &Generics,
     arg: &Type,
     tcx: TyCtxt<'tcx>,
@@ -377,7 +377,7 @@ crate fn get_real_types<'tcx>(
 ///
 /// i.e. `fn foo<A: Display, B: Option<A>>(x: u32, y: B)` will return
 /// `[u32, Display, Option]`.
-crate fn get_all_types<'tcx>(
+fn get_all_types<'tcx>(
     generics: &Generics,
     decl: &FnDecl,
     tcx: TyCtxt<'tcx>,