about summary refs log tree commit diff
path: root/src/librustdoc/json
diff options
context:
space:
mode:
authorNoah Lev <camelidcamel@gmail.com>2021-12-27 18:57:07 -0800
committerNoah Lev <camelidcamel@gmail.com>2021-12-27 18:57:07 -0800
commit2b801dcdd303e3e2a92e255d8cfb9427800403e5 (patch)
tree4526c678e360cc3c097a48ee53acfdd5bc2f7b73 /src/librustdoc/json
parente19593f0e51196dc3528bb5fa8b89e81ae493092 (diff)
downloadrust-2b801dcdd303e3e2a92e255d8cfb9427800403e5.tar.gz
rust-2b801dcdd303e3e2a92e255d8cfb9427800403e5.zip
Move `ExternalLocation` to `clean::types`
It was previously defined in `render::search_index` but wasn't used at
all there. `clean::types` seems like a better fit since that's where
`ExternalCrate` is defined.
Diffstat (limited to 'src/librustdoc/json')
-rw-r--r--src/librustdoc/json/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustdoc/json/mod.rs b/src/librustdoc/json/mod.rs
index 01641bae384..005da01b52b 100644
--- a/src/librustdoc/json/mod.rs
+++ b/src/librustdoc/json/mod.rs
@@ -19,12 +19,11 @@ use rustc_session::Session;
 use rustdoc_json_types as types;
 
 use crate::clean;
-use crate::clean::ExternalCrate;
+use crate::clean::types::{ExternalCrate, ExternalLocation};
 use crate::config::RenderOptions;
 use crate::error::Error;
 use crate::formats::cache::Cache;
 use crate::formats::FormatRenderer;
-use crate::html::render::search_index::ExternalLocation;
 use crate::json::conversions::{from_item_id, IntoWithTcx};
 
 #[derive(Clone)]