diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-09-05 14:15:51 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-05 14:15:51 +0530 |
| commit | 5d55009b797e7dc1e6231e522bd849279cb1d31a (patch) | |
| tree | e379c0e7e5fcda3c8d817925231d8e0e12a359ef /compiler/rustc_save_analysis | |
| parent | 406e03fd02faf5cc8409a8b6b04c26990d6227e6 (diff) | |
| parent | f26fdce9917992f71e561cef44a52fb5bd2e6de9 (diff) | |
Rollup merge of #101142 - nnethercote:improve-hir-stats, r=davidtwco
Improve HIR stats #100398 improve the AST stats collection done by `-Zhir-stats`. This PR does the same for HIR stats collection. r? `@davidtwco`
Diffstat (limited to 'compiler/rustc_save_analysis')
| -rw-r--r-- | compiler/rustc_save_analysis/src/dump_visitor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_save_analysis/src/dump_visitor.rs b/compiler/rustc_save_analysis/src/dump_visitor.rs index ac6c3663b63..c9fc6b9e47a 100644 --- a/compiler/rustc_save_analysis/src/dump_visitor.rs +++ b/compiler/rustc_save_analysis/src/dump_visitor.rs @@ -972,7 +972,7 @@ impl<'tcx> DumpVisitor<'tcx> { self.process_macro_use(trait_item.span); match trait_item.kind { hir::TraitItemKind::Const(ref ty, body) => { - let body = body.map(|b| &self.tcx.hir().body(b).value); + let body = body.map(|b| self.tcx.hir().body(b).value); let attrs = self.tcx.hir().attrs(trait_item.hir_id()); self.process_assoc_const( trait_item.def_id, |
