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