diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-11-30 14:39:00 -0500 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-11-30 14:39:00 -0500 |
| commit | db7373da14ddeb4c21f0d2c32139364d0ff530ee (patch) | |
| tree | bc2f85f33d1ea7256a0f5d53a18de63d5e8282d5 | |
| parent | e37f25aa3f356546ab851e394d5598fc575eabda (diff) | |
| download | rust-db7373da14ddeb4c21f0d2c32139364d0ff530ee.tar.gz rust-db7373da14ddeb4c21f0d2c32139364d0ff530ee.zip | |
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.
| -rw-r--r-- | src/librustdoc/core.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/librustdoc/core.rs b/src/librustdoc/core.rs index b63acdc114e..5a1c0aa7662 100644 --- a/src/librustdoc/core.rs +++ b/src/librustdoc/core.rs @@ -412,9 +412,7 @@ crate fn run_core( let hir = tcx.hir(); let body = hir.body(hir.body_owned_by(hir.local_def_id_to_hir_id(def_id))); debug!("visiting body for {:?}", def_id); - tcx.sess.time("emit_ignored_resolution_errors", || { - EmitIgnoredResolutionErrors::new(tcx).visit_body(body); - }); + EmitIgnoredResolutionErrors::new(tcx).visit_body(body); (rustc_interface::DEFAULT_QUERY_PROVIDERS.typeck)(tcx, def_id) }; }), |
