about summary refs log tree commit diff
diff options
context:
space:
mode:
authorzredb <zredb@163.com>2022-01-13 14:05:52 +0800
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-01-17 13:41:59 +0100
commitbe9d6335f74ed6e23ac0b34a3603410ab3abca31 (patch)
tree5b416576f40097233a0f32abeccde00ca9fd0968
parent0dd2703f8a3f8022da1943cdfc3e53df93f5c896 (diff)
downloadrust-be9d6335f74ed6e23ac0b34a3603410ab3abca31.tar.gz
rust-be9d6335f74ed6e23ac0b34a3603410ab3abca31.zip
fix #90187: Replace all def_id_no_primitives with def_id
-rw-r--r--src/librustdoc/formats/cache.rs2
-rw-r--r--src/librustdoc/html/render/search_index.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/formats/cache.rs b/src/librustdoc/formats/cache.rs
index c9aa3263739..53159709586 100644
--- a/src/librustdoc/formats/cache.rs
+++ b/src/librustdoc/formats/cache.rs
@@ -25,7 +25,7 @@ use crate::html::render::IndexItem;
 /// to be a fairly large and expensive structure to clone. Instead this adheres
 /// to `Send` so it may be stored in an `Arc` instance and shared among the various
 /// rendering threads.
-#[derive(Default, Debug)]
+#[derive(Default)]
 crate struct Cache {
     /// Maps a type ID to all known implementations for that type. This is only
     /// recognized for intra-crate [`clean::Type::Path`]s, and is used to print
diff --git a/src/librustdoc/html/render/search_index.rs b/src/librustdoc/html/render/search_index.rs
index fa965ded176..af14efe8aa0 100644
--- a/src/librustdoc/html/render/search_index.rs
+++ b/src/librustdoc/html/render/search_index.rs
@@ -241,7 +241,7 @@ fn get_index_type_name(clean_type: &clean::Type) -> Option<Symbol> {
 ///
 /// Important note: It goes through generics recursively. So if you have
 /// `T: Option<Result<(), ()>>`, it'll go into `Option` and then into `Result`.
-#[instrument(level = "trace", skip(tcx, res))]
+#[instrument(level = "trace", skip(tcx, res, cache))]
 fn add_generics_and_bounds_as_types<'tcx>(
     generics: &Generics,
     arg: &Type,