Skip to content

Commit db7373d

Browse files
committed
Don't time emit_ignored_resolution_errors
This printed several hundred lines each time rustdoc was run, almost all of which rounded to 0.000. Since this isn't useful info, don't print it everywhere, so other perf info is easier to read.
1 parent e37f25a commit db7373d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/librustdoc/core.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,7 @@ crate fn run_core(
412412
let hir = tcx.hir();
413413
let body = hir.body(hir.body_owned_by(hir.local_def_id_to_hir_id(def_id)));
414414
debug!("visiting body for {:?}", def_id);
415-
tcx.sess.time("emit_ignored_resolution_errors", || {
416-
EmitIgnoredResolutionErrors::new(tcx).visit_body(body);
417-
});
415+
EmitIgnoredResolutionErrors::new(tcx).visit_body(body);
418416
(rustc_interface::DEFAULT_QUERY_PROVIDERS.typeck)(tcx, def_id)
419417
};
420418
}),

0 commit comments

Comments
 (0)