diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/lib.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/librustdoc/lib.rs b/src/librustdoc/lib.rs index 719aca612f5..19d2de58ffb 100644 --- a/src/librustdoc/lib.rs +++ b/src/librustdoc/lib.rs @@ -568,7 +568,7 @@ fn main_options(options: config::Options) -> MainResult { info!("going to format"); let (error_format, edition, debugging_options) = diag_opts; let diag = core::new_handler(error_format, None, &debugging_options); - match output_format { + let main_result = match output_format { None | Some(config::OutputFormat::Html) => sess.time("render_html", || { run_renderer::<html::render::Context<'_>>( krate, @@ -589,7 +589,10 @@ fn main_options(options: config::Options) -> MainResult { tcx, ) }), - } + }; + // NOTE: this is normally called in codegen, but rustdoc never goes to codegen. + tcx.alloc_self_profile_query_strings(); + main_result }) }) }) |
