@@ -470,9 +470,8 @@ impl<'l, 'tcx: 'l, 'll, D: Dump + 'll> DumpVisitor<'l, 'tcx, 'll, D> {
470
470
if !self . span . filter_generated ( Some ( trait_ref_data. span ) , trait_ref. path . span ) {
471
471
self . dumper . type_ref ( trait_ref_data. lower ( self . tcx ) ) ;
472
472
}
473
-
474
- visit:: walk_path ( self , & trait_ref. path ) ;
475
473
}
474
+ self . process_path ( trait_ref. ref_id , & trait_ref. path , Some ( recorder:: TypeRef ) ) ;
476
475
}
477
476
478
477
fn process_struct_field_def ( & mut self , field : & ast:: StructField , parent_id : NodeId ) {
@@ -756,8 +755,6 @@ impl<'l, 'tcx: 'l, 'll, D: Dump + 'll> DumpVisitor<'l, 'tcx, 'll, D> {
756
755
if !self . span . filter_generated ( Some ( trait_ref_data. span ) , item. span ) {
757
756
self . dumper . type_ref ( trait_ref_data. clone ( ) . lower ( self . tcx ) ) ;
758
757
}
759
-
760
- visit:: walk_path ( self , & trait_ref. as_ref ( ) . unwrap ( ) . path ) ;
761
758
}
762
759
763
760
if !self . span . filter_generated ( Some ( impl_data. span ) , item. span ) {
@@ -773,6 +770,9 @@ impl<'l, 'tcx: 'l, 'll, D: Dump + 'll> DumpVisitor<'l, 'tcx, 'll, D> {
773
770
if !has_self_ref {
774
771
self . visit_ty ( & typ) ;
775
772
}
773
+ if let & Some ( ref trait_ref) = trait_ref {
774
+ self . process_path ( trait_ref. ref_id , & trait_ref. path , Some ( recorder:: TypeRef ) ) ;
775
+ }
776
776
self . process_generic_params ( type_parameters, item. span , "" , item. id ) ;
777
777
for impl_item in impl_items {
778
778
let map = & self . tcx . map ;
@@ -1001,8 +1001,8 @@ impl<'l, 'tcx: 'l, 'll, D: Dump + 'll> DumpVisitor<'l, 'tcx, 'll, D> {
1001
1001
1002
1002
fn process_pat ( & mut self , p : & ' l ast:: Pat ) {
1003
1003
match p. node {
1004
- PatKind :: Struct ( ref path , ref fields, _) => {
1005
- visit :: walk_path ( self , path ) ;
1004
+ PatKind :: Struct ( ref _path , ref fields, _) => {
1005
+ // FIXME do something with _path?
1006
1006
let adt = match self . save_ctxt . tables . node_id_to_type_opt ( p. id ) {
1007
1007
Some ( ty) => ty. ty_adt_def ( ) . unwrap ( ) ,
1008
1008
None => {
@@ -1359,8 +1359,6 @@ impl<'l, 'tcx: 'l, 'll, D: Dump +'ll> Visitor<'l> for DumpVisitor<'l, 'tcx, 'll,
1359
1359
}
1360
1360
1361
1361
self . write_sub_paths_truncated ( path) ;
1362
-
1363
- visit:: walk_path ( self , path) ;
1364
1362
}
1365
1363
ast:: TyKind :: Array ( ref element, ref length) => {
1366
1364
self . visit_ty ( element) ;
0 commit comments