diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-05-20 20:17:45 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-07-06 19:26:02 +0200 |
| commit | 9f6d7e7dad3b59fb8939a077c577019852aad33f (patch) | |
| tree | 2b096193cf9b19bf9b5f8419afc4c998126f51d0 /compiler/rustc_query_impl | |
| parent | 071a047dc7815d4cf8fa3056106d56c0fdc9607a (diff) | |
| download | rust-9f6d7e7dad3b59fb8939a077c577019852aad33f.tar.gz rust-9f6d7e7dad3b59fb8939a077c577019852aad33f.zip | |
Correct comments about untracked accesses.
Diffstat (limited to 'compiler/rustc_query_impl')
| -rw-r--r-- | compiler/rustc_query_impl/src/stats.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_query_impl/src/stats.rs b/compiler/rustc_query_impl/src/stats.rs index e877034bd7b..fa48df3ed45 100644 --- a/compiler/rustc_query_impl/src/stats.rs +++ b/compiler/rustc_query_impl/src/stats.rs @@ -108,7 +108,7 @@ pub fn print_stats(tcx: TyCtxt<'_>) { queries.iter().filter(|q| q.local_def_id_keys.is_some()).collect(); def_id_density.sort_by_key(|q| q.local_def_id_keys.unwrap()); eprintln!("\nLocal DefId density:"); - let total = tcx.hir().definitions().def_index_count() as f64; + let total = tcx.resolutions(()).definitions.def_index_count() as f64; for q in def_id_density.iter().rev() { let local = q.local_def_id_keys.unwrap(); eprintln!(" {} - {} = ({}%)", q.name, local, (local as f64 * 100.0) / total); |
