From be9d6335f74ed6e23ac0b34a3603410ab3abca31 Mon Sep 17 00:00:00 2001 From: zredb Date: Thu, 13 Jan 2022 14:05:52 +0800 Subject: [PATCH] fix #90187: Replace all def_id_no_primitives with def_id --- src/librustdoc/formats/cache.rs | 2 +- src/librustdoc/html/render/search_index.rs | 2 +- 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 { /// /// Important note: It goes through generics recursively. So if you have /// `T: Option>`, 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,