@@ -1377,15 +1377,6 @@ impl<'l, 'tcx: 'l, 'll, D: Dump +'ll> Visitor<'l> for DumpVisitor<'l, 'tcx, 'll,
1377
1377
debug ! ( "visit_expr {:?}" , ex. node) ;
1378
1378
self . process_macro_use ( ex. span , ex. id ) ;
1379
1379
match ex. node {
1380
- ast:: ExprKind :: Call ( ref _f, ref _args) => {
1381
- // Don't need to do anything for function calls,
1382
- // because just walking the callee path does what we want.
1383
- visit:: walk_expr ( self , ex) ;
1384
- }
1385
- ast:: ExprKind :: Path ( _, ref path) => {
1386
- self . process_path ( ex. id , path, None ) ;
1387
- visit:: walk_expr ( self , ex) ;
1388
- }
1389
1380
ast:: ExprKind :: Struct ( ref path, ref fields, ref base) => {
1390
1381
let hir_expr = self . save_ctxt . tcx . hir . expect_expr ( ex. id ) ;
1391
1382
let adt = match self . save_ctxt . tables . expr_ty_opt ( & hir_expr) {
@@ -1483,6 +1474,8 @@ impl<'l, 'tcx: 'l, 'll, D: Dump +'ll> Visitor<'l> for DumpVisitor<'l, 'tcx, 'll,
1483
1474
self . visit_expr ( element) ;
1484
1475
self . nest_tables ( count. id , |v| v. visit_expr ( count) ) ;
1485
1476
}
1477
+ // In particular, we take this branch for call and path expressions,
1478
+ // where we'll index the idents involved just by continuing to walk.
1486
1479
_ => {
1487
1480
visit:: walk_expr ( self , ex)
1488
1481
}
0 commit comments