diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-08-26 15:43:00 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-08-29 06:35:14 +1000 |
| commit | db35b685a77d3a50fef2d1f5acec0c25a55df403 (patch) | |
| tree | 2bc143978ddfaa766e871bc806adb78d29336f3c /compiler/rustc_save_analysis/src | |
| parent | 854219d2adc84b1cc9d8662e7bba19807a55731f (diff) | |
| download | rust-db35b685a77d3a50fef2d1f5acec0c25a55df403.tar.gz rust-db35b685a77d3a50fef2d1f5acec0c25a55df403.zip | |
Use `&'hir Expr` everywhere.
For consistency, and because it makes HIR measurement simpler and more accurate.
Diffstat (limited to 'compiler/rustc_save_analysis/src')
| -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 e2e0e1f5b30..ce0d5cbc479 100644 --- a/compiler/rustc_save_analysis/src/dump_visitor.rs +++ b/compiler/rustc_save_analysis/src/dump_visitor.rs @@ -974,7 +974,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, |
