]> git.lizzy.rs Git - rust.git/commitdiff
fix #90187: Replace all def_id_no_primitives with def_id
authorzredb <zredb@163.com>
Thu, 13 Jan 2022 06:05:52 +0000 (14:05 +0800)
committerGuillaume Gomez <guillaume.gomez@huawei.com>
Mon, 17 Jan 2022 12:41:59 +0000 (13:41 +0100)
src/librustdoc/formats/cache.rs
src/librustdoc/html/render/search_index.rs

index c9aa326373906eeae38b3eaa2529cc82e5cff279..53159709586c6826987c39284ba1d4756ed43cc1 100644 (file)
@@ -25,7 +25,7 @@
 /// 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
index fa965ded176983b3186693e7042e2d0c7edd606a..af14efe8aa0ff2b60141a858c090ab0b43c8c5e1 100644 (file)
@@ -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,