We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0679a4c commit bf86fd5Copy full SHA for bf86fd5
src/librustdoc/lib.rs
@@ -568,7 +568,7 @@ fn main_options(options: config::Options) -> MainResult {
568
info!("going to format");
569
let (error_format, edition, debugging_options) = diag_opts;
570
let diag = core::new_handler(error_format, None, &debugging_options);
571
- match output_format {
+ let main_result = match output_format {
572
None | Some(config::OutputFormat::Html) => sess.time("render_html", || {
573
run_renderer::<html::render::Context<'_>>(
574
krate,
@@ -589,7 +589,10 @@ fn main_options(options: config::Options) -> MainResult {
589
tcx,
590
)
591
}),
592
- }
+ };
593
+ // NOTE: this is normally called in codegen, but rustdoc never goes to codegen.
594
+ tcx.alloc_self_profile_query_strings();
595
+ main_result
596
})
597
598
0 commit comments