about summary refs log tree commit diff
path: root/src/librustdoc/core.rs
diff options
context:
space:
mode:
authorOli Scherer <github333195615777966@oli-obk.de>2025-06-03 15:06:04 +0000
committerOli Scherer <github333195615777966@oli-obk.de>2025-06-03 15:16:51 +0000
commit82ed50c2943661abb664fe494d4c5209f8e1818c (patch)
tree4dc88792df2f1f85c7fff13657cd8ac95154f7ab /src/librustdoc/core.rs
parentb17dba45186c454576d0fc8fb93ecc65eb1a763a (diff)
downloadrust-82ed50c2943661abb664fe494d4c5209f8e1818c.tar.gz
rust-82ed50c2943661abb664fe494d4c5209f8e1818c.zip
Run wfcheck in one big loop instead of per module
Diffstat (limited to 'src/librustdoc/core.rs')
-rw-r--r--src/librustdoc/core.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/librustdoc/core.rs b/src/librustdoc/core.rs
index 9d1c9ff00b1..204f8decffc 100644
--- a/src/librustdoc/core.rs
+++ b/src/librustdoc/core.rs
@@ -345,9 +345,7 @@ pub(crate) fn run_global_ctxt(
     // (see `override_queries` in the `config`)
 
     // NOTE: These are copy/pasted from typeck/lib.rs and should be kept in sync with those changes.
-    let _ = tcx.sess.time("wf_checking", || {
-        tcx.try_par_hir_for_each_module(|module| tcx.ensure_ok().check_mod_type_wf(module))
-    });
+    let _ = tcx.sess.time("wf_checking", || tcx.ensure_ok().check_type_wf(()));
 
     tcx.dcx().abort_if_errors();