diff options
| author | bors <bors@rust-lang.org> | 2020-12-09 04:17:29 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-12-09 04:17:29 +0000 |
| commit | 8080f54677e57ca56f20f514f14affc64827d66b (patch) | |
| tree | 6adef10d4c49b598ca7e192dcc55cc7a12f240fb | |
| parent | 2c56ea38b045624dc8b42ec948fc169eaff1206a (diff) | |
| parent | db7373da14ddeb4c21f0d2c32139364d0ff530ee (diff) | |
| download | rust-8080f54677e57ca56f20f514f14affc64827d66b.tar.gz rust-8080f54677e57ca56f20f514f14affc64827d66b.zip | |
Auto merge of #79575 - jyn514:time-passes, r=Mark-Simulacrum
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. r? `@Mark-Simulacrum`
| -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 9c693c290e7..b2eeaf584bf 100644 --- a/src/librustdoc/core.rs +++ b/src/librustdoc/core.rs @@ -411,9 +411,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) }; }), |
