about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-10-31 13:58:03 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-10-31 13:58:03 +0000
commit4512f211ae77306b0cd0686a7871d56edbf36d30 (patch)
tree2a296a2f9a5c125320bbb41e874dd71c01b3bc0c /src
parent22b27120b990aa9ca851819ce95149385da7954d (diff)
Accept less invalid Rust in rustdoc
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/core.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/librustdoc/core.rs b/src/librustdoc/core.rs
index 17b117de5d4..6d9f8b820c4 100644
--- a/src/librustdoc/core.rs
+++ b/src/librustdoc/core.rs
@@ -319,10 +319,14 @@ pub(crate) fn run_global_ctxt(
         tcx.hir().for_each_module(|module| tcx.ensure().collect_mod_item_types(module))
     });
 
-    // NOTE: This is copy/pasted from typeck/lib.rs and should be kept in sync with those changes.
+    // 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.hir().try_par_for_each_module(|module| tcx.ensure().check_mod_type_wf(module))
+    });
     tcx.sess.time("item_types_checking", || {
         tcx.hir().for_each_module(|module| tcx.ensure().check_mod_item_types(module))
     });
+
     tcx.sess.abort_if_errors();
     tcx.sess.time("missing_docs", || rustc_lint::check_crate(tcx));
     tcx.sess.time("check_mod_attrs", || {