@@ -611,8 +611,6 @@ trait rbml_writer_helpers<'tcx> {
611611 fn emit_region ( & mut self , ecx : & e:: EncodeContext , r : ty:: Region ) ;
612612 fn emit_ty < ' a > ( & mut self , ecx : & e:: EncodeContext < ' a , ' tcx > , ty : Ty < ' tcx > ) ;
613613 fn emit_tys < ' a > ( & mut self , ecx : & e:: EncodeContext < ' a , ' tcx > , tys : & [ Ty < ' tcx > ] ) ;
614- fn emit_type_param_def < ' a > ( & mut self , ecx : & e:: EncodeContext < ' a , ' tcx > ,
615- type_param_def : & ty:: TypeParameterDef < ' tcx > ) ;
616614 fn emit_predicate < ' a > ( & mut self , ecx : & e:: EncodeContext < ' a , ' tcx > ,
617615 predicate : & ty:: Predicate < ' tcx > ) ;
618616 fn emit_trait_ref < ' a > ( & mut self , ecx : & e:: EncodeContext < ' a , ' tcx > ,
@@ -657,15 +655,6 @@ impl<'a, 'tcx> rbml_writer_helpers<'tcx> for Encoder<'a> {
657655 self . emit_opaque ( |this| Ok ( e:: write_trait_ref ( ecx, this, trait_ref) ) ) ;
658656 }
659657
660- fn emit_type_param_def < ' b > ( & mut self , ecx : & e:: EncodeContext < ' b , ' tcx > ,
661- type_param_def : & ty:: TypeParameterDef < ' tcx > ) {
662- self . emit_opaque ( |this| {
663- Ok ( tyencode:: enc_type_param_def ( this,
664- & ecx. ty_str_ctxt ( ) ,
665- type_param_def) )
666- } ) ;
667- }
668-
669658 fn emit_predicate < ' b > ( & mut self , ecx : & e:: EncodeContext < ' b , ' tcx > ,
670659 predicate : & ty:: Predicate < ' tcx > ) {
671660 self . emit_opaque ( |this| {
@@ -894,13 +883,6 @@ fn encode_side_tables_for_id(ecx: &e::EncodeContext,
894883 }
895884 }
896885
897- if let Some ( type_param_def) = tcx. ty_param_defs . borrow ( ) . get ( & id) {
898- rbml_w. tag ( c:: tag_table_param_defs, |rbml_w| {
899- rbml_w. id ( id) ;
900- rbml_w. emit_type_param_def ( ecx, type_param_def)
901- } )
902- }
903-
904886 let method_call = ty:: MethodCall :: expr ( id) ;
905887 if let Some ( method) = tcx. tables . borrow ( ) . method_map . get ( & method_call) {
906888 rbml_w. tag ( c:: tag_table_method_map, |rbml_w| {
@@ -985,8 +967,6 @@ trait rbml_decoder_decoder_helpers<'tcx> {
985967 -> ty:: TraitRef < ' tcx > ;
986968 fn read_poly_trait_ref < ' a , ' b > ( & mut self , dcx : & DecodeContext < ' a , ' b , ' tcx > )
987969 -> ty:: PolyTraitRef < ' tcx > ;
988- fn read_type_param_def < ' a , ' b > ( & mut self , dcx : & DecodeContext < ' a , ' b , ' tcx > )
989- -> ty:: TypeParameterDef < ' tcx > ;
990970 fn read_predicate < ' a , ' b > ( & mut self , dcx : & DecodeContext < ' a , ' b , ' tcx > )
991971 -> ty:: Predicate < ' tcx > ;
992972 fn read_existential_bounds < ' a , ' b > ( & mut self , dcx : & DecodeContext < ' a , ' b , ' tcx > )
@@ -1105,11 +1085,6 @@ impl<'a, 'tcx> rbml_decoder_decoder_helpers<'tcx> for reader::Decoder<'a> {
11051085 ty:: Binder ( self . read_ty_encoded ( dcx, |decoder| decoder. parse_trait_ref ( ) ) )
11061086 }
11071087
1108- fn read_type_param_def < ' b , ' c > ( & mut self , dcx : & DecodeContext < ' b , ' c , ' tcx > )
1109- -> ty:: TypeParameterDef < ' tcx > {
1110- self . read_ty_encoded ( dcx, |decoder| decoder. parse_type_param_def ( ) )
1111- }
1112-
11131088 fn read_predicate < ' b , ' c > ( & mut self , dcx : & DecodeContext < ' b , ' c , ' tcx > )
11141089 -> ty:: Predicate < ' tcx >
11151090 {
@@ -1351,10 +1326,6 @@ fn decode_side_tables(dcx: &DecodeContext,
13511326 let ub = val_dsr. read_upvar_capture ( dcx) ;
13521327 dcx. tcx . tables . borrow_mut ( ) . upvar_capture_map . insert ( upvar_id, ub) ;
13531328 }
1354- c:: tag_table_param_defs => {
1355- let bounds = val_dsr. read_type_param_def ( dcx) ;
1356- dcx. tcx . ty_param_defs . borrow_mut ( ) . insert ( id, bounds) ;
1357- }
13581329 c:: tag_table_method_map => {
13591330 let ( autoderef, method) = val_dsr. read_method_callee ( dcx) ;
13601331 let method_call = ty:: MethodCall {
0 commit comments