@@ -1363,15 +1363,6 @@ impl<'l, 'tcx: 'l, 'll, D: Dump +'ll> Visitor<'l> for DumpVisitor<'l, 'tcx, 'll,
1363
1363
debug ! ( "visit_expr {:?}" , ex. node) ;
1364
1364
self . process_macro_use ( ex. span , ex. id ) ;
1365
1365
match ex. node {
1366
- ast:: ExprKind :: Call ( ref _f, ref _args) => {
1367
- // Don't need to do anything for function calls,
1368
- // because just walking the callee path does what we want.
1369
- visit:: walk_expr ( self , ex) ;
1370
- }
1371
- ast:: ExprKind :: Path ( _, ref path) => {
1372
- self . process_path ( ex. id , path, None ) ;
1373
- visit:: walk_expr ( self , ex) ;
1374
- }
1375
1366
ast:: ExprKind :: Struct ( ref path, ref fields, ref base) => {
1376
1367
let hir_expr = self . save_ctxt . tcx . hir . expect_expr ( ex. id ) ;
1377
1368
let adt = match self . save_ctxt . tables . expr_ty_opt ( & hir_expr) {
@@ -1469,6 +1460,8 @@ impl<'l, 'tcx: 'l, 'll, D: Dump +'ll> Visitor<'l> for DumpVisitor<'l, 'tcx, 'll,
1469
1460
self . visit_expr ( element) ;
1470
1461
self . nest_tables ( count. id , |v| v. visit_expr ( count) ) ;
1471
1462
}
1463
+ // In particular, we take this branch for call and path expressions,
1464
+ // where we'll index the idents involved just by continuing to walk.
1472
1465
_ => {
1473
1466
visit:: walk_expr ( self , ex)
1474
1467
}
0 commit comments