diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-05-20 20:17:45 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-05-30 20:04:37 +0200 |
| commit | 1119b48e0202796d7dec8ae09cfb2112c7b47ebd (patch) | |
| tree | a297e5b8388e7cfd67f500081e840927c14f5b95 /compiler/rustc_query_impl | |
| parent | f0e5e228066f8e307bc5680ed62c11bb6b692411 (diff) | |
| download | rust-1119b48e0202796d7dec8ae09cfb2112c7b47ebd.tar.gz rust-1119b48e0202796d7dec8ae09cfb2112c7b47ebd.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); |
