@@ -32,7 +32,7 @@ use std::mem;
3232use std:: num:: NonZeroUsize ;
3333use std:: u32;
3434
35- use rustc_serialize:: { Decodable , Decoder , Encodable , SpecializedDecoder , opaque} ;
35+ use rustc_serialize:: { Decodable , Decoder , SpecializedDecoder , opaque} ;
3636use syntax:: attr;
3737use syntax:: ast:: { self , Ident } ;
3838use syntax:: source_map:: { self , respan, Spanned } ;
@@ -217,15 +217,15 @@ impl<'a, 'tcx> Metadata<'a, 'tcx> for (&'a CrateMetadata, TyCtxt<'tcx>) {
217217 }
218218}
219219
220- impl < ' a , ' tcx , T : Encodable + Decodable > Lazy < T > {
220+ impl < ' a , ' tcx , T : Decodable > Lazy < T > {
221221 fn decode < M : Metadata < ' a , ' tcx > > ( self , metadata : M ) -> T {
222222 let mut dcx = metadata. decoder ( self . position . get ( ) ) ;
223223 dcx. lazy_state = LazyState :: NodeStart ( self . position ) ;
224224 T :: decode ( & mut dcx) . unwrap ( )
225225 }
226226}
227227
228- impl < ' a : ' x , ' tcx : ' x , ' x , T : Encodable + Decodable > Lazy < [ T ] > {
228+ impl < ' a : ' x , ' tcx : ' x , ' x , T : Decodable > Lazy < [ T ] > {
229229 fn decode < M : Metadata < ' a , ' tcx > > (
230230 self ,
231231 metadata : M ,
@@ -324,13 +324,13 @@ impl<'a, 'tcx> TyDecoder<'tcx> for DecodeContext<'a, 'tcx> {
324324 }
325325}
326326
327- impl < ' a , ' tcx , T : Encodable > SpecializedDecoder < Lazy < T > > for DecodeContext < ' a , ' tcx > {
327+ impl < ' a , ' tcx , T > SpecializedDecoder < Lazy < T > > for DecodeContext < ' a , ' tcx > {
328328 fn specialized_decode ( & mut self ) -> Result < Lazy < T > , Self :: Error > {
329329 self . read_lazy_with_meta ( ( ) )
330330 }
331331}
332332
333- impl < ' a , ' tcx , T : Encodable > SpecializedDecoder < Lazy < [ T ] > > for DecodeContext < ' a , ' tcx > {
333+ impl < ' a , ' tcx , T > SpecializedDecoder < Lazy < [ T ] > > for DecodeContext < ' a , ' tcx > {
334334 fn specialized_decode ( & mut self ) -> Result < Lazy < [ T ] > , Self :: Error > {
335335 let len = self . read_usize ( ) ?;
336336 if len == 0 {
0 commit comments