@@ -609,20 +609,17 @@ fn encode_method_callee<'a, 'tcx>(ecx: &e::EncodeContext<'a, 'tcx>,
609609 method : & ty:: MethodCallee < ' tcx > ) {
610610 use serialize:: Encoder ;
611611
612- rbml_w. emit_struct ( "MethodCallee" , 5 , |rbml_w| {
612+ rbml_w. emit_struct ( "MethodCallee" , 4 , |rbml_w| {
613613 rbml_w. emit_struct_field ( "autoderef" , 0 , |rbml_w| {
614614 autoderef. encode ( rbml_w)
615615 } ) ;
616616 rbml_w. emit_struct_field ( "def_id" , 1 , |rbml_w| {
617617 Ok ( rbml_w. emit_def_id ( method. def_id ) )
618618 } ) ;
619- rbml_w. emit_struct_field ( "origin" , 2 , |rbml_w| {
620- method. origin . encode ( rbml_w)
621- } ) ;
622- rbml_w. emit_struct_field ( "ty" , 3 , |rbml_w| {
619+ rbml_w. emit_struct_field ( "ty" , 2 , |rbml_w| {
623620 Ok ( rbml_w. emit_ty ( ecx, method. ty ) )
624621 } ) ;
625- rbml_w. emit_struct_field ( "substs" , 4 , |rbml_w| {
622+ rbml_w. emit_struct_field ( "substs" , 3 , |rbml_w| {
626623 Ok ( rbml_w. emit_substs ( ecx, & method. substs ) )
627624 } )
628625 } ) . unwrap ( ) ;
@@ -632,19 +629,17 @@ impl<'a, 'tcx> read_method_callee_helper<'tcx> for reader::Decoder<'a> {
632629 fn read_method_callee < ' b , ' c > ( & mut self , dcx : & DecodeContext < ' b , ' c , ' tcx > )
633630 -> ( u32 , ty:: MethodCallee < ' tcx > ) {
634631
635- self . read_struct ( "MethodCallee" , 5 , |this| {
632+ self . read_struct ( "MethodCallee" , 4 , |this| {
636633 let autoderef = this. read_struct_field ( "autoderef" , 0 ,
637634 Decodable :: decode) . unwrap ( ) ;
638635 Ok ( ( autoderef, ty:: MethodCallee {
639636 def_id : this. read_struct_field ( "def_id" , 1 , |this| {
640637 Ok ( this. read_def_id ( dcx) )
641638 } ) . unwrap ( ) ,
642- origin : this. read_struct_field ( "origin" , 2 ,
643- Decodable :: decode) . unwrap ( ) ,
644- ty : this. read_struct_field ( "ty" , 3 , |this| {
639+ ty : this. read_struct_field ( "ty" , 2 , |this| {
645640 Ok ( this. read_ty ( dcx) )
646641 } ) . unwrap ( ) ,
647- substs : this. read_struct_field ( "substs" , 4 , |this| {
642+ substs : this. read_struct_field ( "substs" , 3 , |this| {
648643 Ok ( dcx. tcx . mk_substs ( this. read_substs ( dcx) ) )
649644 } ) . unwrap ( )
650645 } ) )
0 commit comments