diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2021-01-23 20:16:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-23 20:16:10 +0100 |
| commit | 81647c627a8d84f970399513ea08a285b167c666 (patch) | |
| tree | 53cfac26f449ca898d7bee1472ae9e45c09dcd86 /src/librustdoc/html/render | |
| parent | 7038bb1eb2244a831604177c36c7108a92c19a63 (diff) | |
| parent | ca72f9ed7065a601bd2b1ec80889ec7bad177598 (diff) | |
| download | rust-81647c627a8d84f970399513ea08a285b167c666.tar.gz rust-81647c627a8d84f970399513ea08a285b167c666.zip | |
Rollup merge of #81275 - jyn514:time-render, r=wesleywiser
Fix <unknown> queries and add more timing info to render_html Closes https://github.com/rust-lang/rust/issues/81251. ## Fix `<unknown>` queries This happened because `alloc_query_strings` was never called. ## Add more timing info to render_html This still has some issues I'm not sure how to work out: - `create_renderer` and `renderer_after_krate` aren't shown by default. I want something like `verbose_generic_activity_with_arg`, but it doesn't exist. I'm also not sure how to show activities that aren't on by default - I tried `-Z self-profile -Z self-profile-args=all`, but it didn't show up. r? `@wesleywiser`
Diffstat (limited to 'src/librustdoc/html/render')
| -rw-r--r-- | src/librustdoc/html/render/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index 6167b75ee50..8e010839ad8 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -383,6 +383,10 @@ crate fn initial_ids() -> Vec<String> { /// Generates the documentation for `crate` into the directory `dst` impl<'tcx> FormatRenderer<'tcx> for Context<'tcx> { + fn descr() -> &'static str { + "html" + } + fn init( mut krate: clean::Crate, options: RenderOptions, |
