Skip to content

Commit

Permalink
Remove redundant query invocations in rustdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Feb 23, 2024
1 parent 435abb2 commit 59ead52
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/librustdoc/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,11 +325,6 @@ pub(crate) fn run_global_ctxt(
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| {
let _ = tcx.ensure().check_mod_type_wf(module);
});
});

if let Some(guar) = tcx.dcx().has_errors() {
return Err(guar);
Expand Down

0 comments on commit 59ead52

Please sign in to comment.