diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2021-01-22 10:31:18 -0500 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2021-01-22 19:20:37 -0500 |
| commit | bf86fd522114d8064360682bacd23327a84dbfa4 (patch) | |
| tree | bf666bc69321025585549cd1f88be2e122d55616 | |
| parent | 0679a4cd93db7dfd33b45cd5bd6be52a0f5e894a (diff) | |
| download | rust-bf86fd522114d8064360682bacd23327a84dbfa4.tar.gz rust-bf86fd522114d8064360682bacd23327a84dbfa4.zip | |
Fix <unknown> queries
This happened because `alloc_query_strings` was never called.
| -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 }) }) }) |
