diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-01-09 13:38:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-09 13:38:32 +0100 |
| commit | 51001b35bd4079ea40536a264e054eec9b4f11bd (patch) | |
| tree | 14be46fbc02db5e31f03fcd737c154bd637535ec /src/librustdoc/clean/inline.rs | |
| parent | b681dc2af419c5b7f200e44a3604a8dab9ebe3a6 (diff) | |
| parent | 5acd1f91a01eacbe1f7feccf6f1c6775d3c4d1b4 (diff) | |
Rollup merge of #92608 - petrochenkov:doctrscope3, r=CraftSpider
rustdoc: Introduce a resolver cache for sharing data between early doc link resolution and later passes The refactoring parts of https://github.com/rust-lang/rust/pull/88679, shouldn't cause any slowdowns. r? `@jyn514`
Diffstat (limited to 'src/librustdoc/clean/inline.rs')
| -rw-r--r-- | src/librustdoc/clean/inline.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustdoc/clean/inline.rs b/src/librustdoc/clean/inline.rs index ce0ac322af9..a8101845fb6 100644 --- a/src/librustdoc/clean/inline.rs +++ b/src/librustdoc/clean/inline.rs @@ -291,6 +291,7 @@ crate fn build_impls( attrs: Option<Attrs<'_>>, ret: &mut Vec<clean::Item>, ) { + let _prof_timer = cx.tcx.sess.prof.generic_activity("build_inherent_impls"); let tcx = cx.tcx; // for each implementation of an item represented by `did`, build the clean::Item for that impl @@ -338,7 +339,7 @@ crate fn build_impl( return; } - let _prof_timer = cx.tcx.sess.prof.generic_activity("build_extern_trait_impl"); + let _prof_timer = cx.tcx.sess.prof.generic_activity("build_impl"); let tcx = cx.tcx; let associated_trait = tcx.impl_trait_ref(did); |
