Skip to content

Commit 3ddbf8e

Browse files
Auto merge of #147452 - lolbinarycat:rustdoc-lib_embargo-self-profile, r=<try>
rustdoc: instrument call to lib_embargo_visit_item
2 parents 4a54b26 + 509a5c3 commit 3ddbf8e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/librustdoc/core.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,9 +383,11 @@ pub(crate) fn run_global_ctxt(
383383
show_coverage,
384384
};
385385

386-
for cnum in tcx.crates(()) {
387-
crate::visit_lib::lib_embargo_visit_item(&mut ctxt, cnum.as_def_id());
388-
}
386+
tcx.sess.time("lib_embargo_visit_crates", || {
387+
for cnum in tcx.crates(()) {
388+
crate::visit_lib::lib_embargo_visit_item(&mut ctxt, cnum.as_def_id());
389+
}
390+
});
389391

390392
// Small hack to force the Sized trait to be present.
391393
//

0 commit comments

Comments
 (0)