Use &'hir Expr
everywhere.
For consistency, and because it makes HIR measurement simpler and more accurate.
This commit is contained in:
parent
854219d2ad
commit
db35b685a7
7 changed files with 22 additions and 18 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue