Skip to content

Commit 60a1abe

Browse files
committed
Rename rustdoc::html::render::cache to search_index
The old name wasn't very clear, while the new one makes it clear that this is the code responsible for creating the search index.
1 parent 4ee34f3 commit 60a1abe

File tree

7 files changed

+6
-6
lines changed

7 files changed

+6
-6
lines changed

src/librustdoc/clean/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ use crate::clean::Clean;
3838
use crate::core::DocContext;
3939
use crate::formats::cache::Cache;
4040
use crate::formats::item_type::ItemType;
41-
use crate::html::render::cache::ExternalLocation;
41+
use crate::html::render::search_index::ExternalLocation;
4242
use crate::html::render::Context;
4343

4444
crate use self::FnRetTy::*;

src/librustdoc/formats/cache.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use crate::fold::DocFolder;
1212
use crate::formats::item_type::ItemType;
1313
use crate::formats::Impl;
1414
use crate::html::markdown::short_markdown_summary;
15-
use crate::html::render::cache::{get_index_search_type, ExternalLocation};
15+
use crate::html::render::search_index::{get_index_search_type, ExternalLocation};
1616
use crate::html::render::IndexItem;
1717

1818
/// This cache is used to store information about the [`clean::Crate`] being

src/librustdoc/html/format.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use rustc_target::spec::abi::Abi;
2424
use crate::clean::{self, utils::find_nearest_parent_module, ExternalCrate, ItemId, PrimitiveType};
2525
use crate::formats::item_type::ItemType;
2626
use crate::html::escape::Escape;
27-
use crate::html::render::cache::ExternalLocation;
27+
use crate::html::render::search_index::ExternalLocation;
2828
use crate::html::render::Context;
2929

3030
use super::url_parts_builder::UrlPartsBuilder;

src/librustdoc/html/render/context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ use rustc_span::edition::Edition;
1313
use rustc_span::source_map::FileName;
1414
use rustc_span::symbol::sym;
1515

16-
use super::cache::{build_index, ExternalLocation};
1716
use super::print_item::{full_path, item_path, print_item};
17+
use super::search_index::{build_index, ExternalLocation};
1818
use super::templates;
1919
use super::write_shared::write_shared;
2020
use super::{

src/librustdoc/html/render/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
//! These threads are not parallelized (they haven't been a bottleneck yet), and
2424
//! both occur before the crate is rendered.
2525
26-
crate mod cache;
26+
crate mod search_index;
2727

2828
#[cfg(test)]
2929
mod tests;

src/librustdoc/json/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use crate::config::RenderOptions;
2424
use crate::error::Error;
2525
use crate::formats::cache::Cache;
2626
use crate::formats::FormatRenderer;
27-
use crate::html::render::cache::ExternalLocation;
27+
use crate::html::render::search_index::ExternalLocation;
2828
use crate::json::conversions::{from_item_id, IntoWithTcx};
2929

3030
#[derive(Clone)]

0 commit comments

Comments
 (0)