Skip to content

Commit bf86fd5

Browse files
committed
Fix <unknown> queries
This happened because `alloc_query_strings` was never called.
1 parent 0679a4c commit bf86fd5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/librustdoc/lib.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ fn main_options(options: config::Options) -> MainResult {
568568
info!("going to format");
569569
let (error_format, edition, debugging_options) = diag_opts;
570570
let diag = core::new_handler(error_format, None, &debugging_options);
571-
match output_format {
571+
let main_result = match output_format {
572572
None | Some(config::OutputFormat::Html) => sess.time("render_html", || {
573573
run_renderer::<html::render::Context<'_>>(
574574
krate,
@@ -589,7 +589,10 @@ fn main_options(options: config::Options) -> MainResult {
589589
tcx,
590590
)
591591
}),
592-
}
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
593596
})
594597
})
595598
})

0 commit comments

Comments
 (0)