@@ -1401,15 +1401,6 @@ impl<'l, 'tcx: 'l, 'll, D: Dump +'ll> Visitor<'l> for DumpVisitor<'l, 'tcx, 'll,
1401
1401
debug ! ( "visit_expr {:?}" , ex. node) ;
1402
1402
self . process_macro_use ( ex. span , ex. id ) ;
1403
1403
match ex. node {
1404
- ast:: ExprKind :: Call ( ref _f, ref _args) => {
1405
- // Don't need to do anything for function calls,
1406
- // because just walking the callee path does what we want.
1407
- visit:: walk_expr ( self , ex) ;
1408
- }
1409
- ast:: ExprKind :: Path ( _, ref path) => {
1410
- self . process_path ( ex. id , path, None ) ;
1411
- visit:: walk_expr ( self , ex) ;
1412
- }
1413
1404
ast:: ExprKind :: Struct ( ref path, ref fields, ref base) => {
1414
1405
let hir_expr = self . save_ctxt . tcx . hir . expect_expr ( ex. id ) ;
1415
1406
let adt = match self . save_ctxt . tables . expr_ty_opt ( & hir_expr) {
@@ -1507,6 +1498,8 @@ impl<'l, 'tcx: 'l, 'll, D: Dump +'ll> Visitor<'l> for DumpVisitor<'l, 'tcx, 'll,
1507
1498
self . visit_expr ( element) ;
1508
1499
self . nest_tables ( count. id , |v| v. visit_expr ( count) ) ;
1509
1500
}
1501
+ // In particular, we take this branch for call and path expressions,
1502
+ // where we'll index the idents involved just by continuing to walk.
1510
1503
_ => {
1511
1504
visit:: walk_expr ( self , ex)
1512
1505
}
0 commit comments