@@ -41,7 +41,6 @@ use syntax;
4141use std:: cell:: Cell ;
4242use std:: io:: SeekFrom ;
4343use std:: io:: prelude:: * ;
44- use std:: rc:: Rc ;
4544use std:: fmt:: Debug ;
4645
4746use rbml:: reader;
@@ -890,7 +889,7 @@ impl<'a, 'tcx> rbml_writer_helpers<'tcx> for Encoder<'a> {
890889 this. emit_enum_variant ( "MethodTypeParam" , 2 , 1 , |this| {
891890 this. emit_struct ( "MethodParam" , 2 , |this| {
892891 try!( this. emit_struct_field ( "trait_ref" , 0 , |this| {
893- Ok ( this. emit_trait_ref ( ecx, & * p. trait_ref ) )
892+ Ok ( this. emit_trait_ref ( ecx, & p. trait_ref ) )
894893 } ) ) ;
895894 try!( this. emit_struct_field ( "method_num" , 0 , |this| {
896895 this. emit_uint ( p. method_num )
@@ -914,7 +913,7 @@ impl<'a, 'tcx> rbml_writer_helpers<'tcx> for Encoder<'a> {
914913 this. emit_enum_variant ( "MethodTraitObject" , 3 , 1 , |this| {
915914 this. emit_struct ( "MethodObject" , 2 , |this| {
916915 try!( this. emit_struct_field ( "trait_ref" , 0 , |this| {
917- Ok ( this. emit_trait_ref ( ecx, & * o. trait_ref ) )
916+ Ok ( this. emit_trait_ref ( ecx, & o. trait_ref ) )
918917 } ) ) ;
919918 try!( this. emit_struct_field ( "object_trait_id" , 0 , |this| {
920919 Ok ( this. emit_def_id ( o. object_trait_id ) )
@@ -1208,7 +1207,7 @@ fn encode_side_tables_for_id(ecx: &e::EncodeContext,
12081207 if let Some ( trait_ref) = tcx. object_cast_map . borrow ( ) . get ( & id) {
12091208 rbml_w. tag ( c:: tag_table_object_cast_map, |rbml_w| {
12101209 rbml_w. id ( id) ;
1211- rbml_w. emit_trait_ref ( ecx, & * trait_ref. 0 ) ;
1210+ rbml_w. emit_trait_ref ( ecx, & trait_ref. 0 ) ;
12121211 } )
12131212 }
12141213
@@ -1275,7 +1274,7 @@ trait rbml_decoder_decoder_helpers<'tcx> {
12751274 fn read_ty < ' a , ' b > ( & mut self , dcx : & DecodeContext < ' a , ' b , ' tcx > ) -> Ty < ' tcx > ;
12761275 fn read_tys < ' a , ' b > ( & mut self , dcx : & DecodeContext < ' a , ' b , ' tcx > ) -> Vec < Ty < ' tcx > > ;
12771276 fn read_trait_ref < ' a , ' b > ( & mut self , dcx : & DecodeContext < ' a , ' b , ' tcx > )
1278- -> Rc < ty:: TraitRef < ' tcx > > ;
1277+ -> ty:: TraitRef < ' tcx > ;
12791278 fn read_poly_trait_ref < ' a , ' b > ( & mut self , dcx : & DecodeContext < ' a , ' b , ' tcx > )
12801279 -> ty:: PolyTraitRef < ' tcx > ;
12811280 fn read_type_param_def < ' a , ' b > ( & mut self , dcx : & DecodeContext < ' a , ' b , ' tcx > )
@@ -1469,7 +1468,7 @@ impl<'a, 'tcx> rbml_decoder_decoder_helpers<'tcx> for reader::Decoder<'a> {
14691468 }
14701469
14711470 fn read_trait_ref < ' b , ' c > ( & mut self , dcx : & DecodeContext < ' b , ' c , ' tcx > )
1472- -> Rc < ty:: TraitRef < ' tcx > > {
1471+ -> ty:: TraitRef < ' tcx > {
14731472 self . read_opaque ( |this, doc| {
14741473 let ty = tydecode:: parse_trait_ref_data (
14751474 doc. data ,
0 commit comments