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:39:35 -0800
committerNoah Lev <camelidcamel@gmail.com>2021-12-27 18:42:13 -0800
commit60a1abe4c5b6399e62144fc94d236b6f7eefcdf0 (patch)
treefd954ac7ae23340b183830475d3878dcba89ea2d /src/librustdoc/html/render
parent4ee34f355101db4d7a97455589c9dbc335d7a963 (diff)
downloadrust-60a1abe4c5b6399e62144fc94d236b6f7eefcdf0.tar.gz
rust-60a1abe4c5b6399e62144fc94d236b6f7eefcdf0.zip
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.
Diffstat (limited to 'src/librustdoc/html/render')
-rw-r--r--src/librustdoc/html/render/context.rs2
-rw-r--r--src/librustdoc/html/render/mod.rs2
-rw-r--r--src/librustdoc/html/render/search_index.rs (renamed from src/librustdoc/html/render/cache.rs)0
3 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/render/context.rs b/src/librustdoc/html/render/context.rs
index 45a436c4487..6729129027f 100644
--- a/src/librustdoc/html/render/context.rs
+++ b/src/librustdoc/html/render/context.rs
@@ -13,8 +13,8 @@ use rustc_span::edition::Edition;
 use rustc_span::source_map::FileName;
 use rustc_span::symbol::sym;
 
-use super::cache::{build_index, ExternalLocation};
 use super::print_item::{full_path, item_path, print_item};
+use super::search_index::{build_index, ExternalLocation};
 use super::templates;
 use super::write_shared::write_shared;
 use super::{
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs
index eb606178d24..3e7711181f7 100644
--- a/src/librustdoc/html/render/mod.rs
+++ b/src/librustdoc/html/render/mod.rs
@@ -23,7 +23,7 @@
 //! These threads are not parallelized (they haven't been a bottleneck yet), and
 //! both occur before the crate is rendered.
 
-crate mod cache;
+crate mod search_index;
 
 #[cfg(test)]
 mod tests;
diff --git a/src/librustdoc/html/render/cache.rs b/src/librustdoc/html/render/search_index.rs
index 631eacc9618..631eacc9618 100644
--- a/src/librustdoc/html/render/cache.rs
+++ b/src/librustdoc/html/render/search_index.rs