@@ -1133,12 +1133,6 @@ impl<'l, 'tcx> DumpVisitor<'l, 'tcx> {
11331133 // trait.
11341134 self . visit_ty ( ty)
11351135 }
1136- ast:: ImplItemKind :: OpaqueTy ( ref bounds) => {
1137- // FIXME: uses of the assoc type should ideally point to this
1138- // 'def' and the name here should be a ref to the def in the
1139- // trait.
1140- self . process_bounds ( & bounds) ;
1141- }
11421136 ast:: ImplItemKind :: Macro ( _) => { }
11431137 }
11441138 }
@@ -1384,38 +1378,6 @@ impl<'l, 'tcx> Visitor<'l> for DumpVisitor<'l, 'tcx> {
13841378 self . visit_ty ( & ty) ;
13851379 self . process_generic_params ( ty_params, & qualname, item. id ) ;
13861380 }
1387- OpaqueTy ( ref bounds, ref ty_params) => {
1388- let qualname = format ! ( "::{}" ,
1389- self . tcx. def_path_str( self . tcx. hir( ) . local_def_id_from_node_id( item. id) ) ) ;
1390-
1391- let value = String :: new ( ) ;
1392- if !self . span . filter_generated ( item. ident . span ) {
1393- let span = self . span_from_span ( item. ident . span ) ;
1394- let id = id_from_node_id ( item. id , & self . save_ctxt ) ;
1395- let hir_id = self . tcx . hir ( ) . node_to_hir_id ( item. id ) ;
1396-
1397- self . dumper . dump_def (
1398- & access_from ! ( self . save_ctxt, item, hir_id) ,
1399- Def {
1400- kind : DefKind :: Type ,
1401- id,
1402- span,
1403- name : item. ident . to_string ( ) ,
1404- qualname : qualname. clone ( ) ,
1405- value,
1406- parent : None ,
1407- children : vec ! [ ] ,
1408- decl_id : None ,
1409- docs : self . save_ctxt . docs_for_attrs ( & item. attrs ) ,
1410- sig : sig:: item_signature ( item, & self . save_ctxt ) ,
1411- attributes : lower_attributes ( item. attrs . clone ( ) , & self . save_ctxt ) ,
1412- } ,
1413- ) ;
1414- }
1415-
1416- self . process_bounds ( bounds) ;
1417- self . process_generic_params ( ty_params, & qualname, item. id ) ;
1418- }
14191381 Mac ( _) => ( ) ,
14201382 _ => visit:: walk_item ( self , item) ,
14211383 }
0 commit comments