Skip to content

Commit bd6692c

Browse files
committed
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`).
1 parent 2b801dc commit bd6692c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/html/render/search_index.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ fn get_index_type_name(clean_type: &clean::Type, accept_generic: bool) -> Option
237237
///
238238
/// Important note: It goes through generics recursively. So if you have
239239
/// `T: Option<Result<(), ()>>`, it'll go into `Option` and then into `Result`.
240-
crate fn get_real_types<'tcx>(
240+
fn get_real_types<'tcx>(
241241
generics: &Generics,
242242
arg: &Type,
243243
tcx: TyCtxt<'tcx>,
@@ -377,7 +377,7 @@ crate fn get_real_types<'tcx>(
377377
///
378378
/// i.e. `fn foo<A: Display, B: Option<A>>(x: u32, y: B)` will return
379379
/// `[u32, Display, Option]`.
380-
crate fn get_all_types<'tcx>(
380+
fn get_all_types<'tcx>(
381381
generics: &Generics,
382382
decl: &FnDecl,
383383
tcx: TyCtxt<'tcx>,

0 commit comments

Comments
 (0)