@@ -32,7 +32,7 @@ use crate::util::nodemap::{NodeSet, DefIdMap, FxHashMap};
32
32
use arena:: SyncDroplessArena ;
33
33
use crate :: session:: DataTypeKind ;
34
34
35
- use serialize :: { self , Encodable , Encoder } ;
35
+ use rustc_serialize :: { self , Encodable , Encoder } ;
36
36
use std:: cell:: RefCell ;
37
37
use std:: cmp:: { self , Ordering } ;
38
38
use std:: fmt;
@@ -588,8 +588,8 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for ty::TyS<'tcx> {
588
588
589
589
pub type Ty < ' tcx > = & ' tcx TyS < ' tcx > ;
590
590
591
- impl < ' tcx > serialize :: UseSpecializedEncodable for Ty < ' tcx > { }
592
- impl < ' tcx > serialize :: UseSpecializedDecodable for Ty < ' tcx > { }
591
+ impl < ' tcx > rustc_serialize :: UseSpecializedEncodable for Ty < ' tcx > { }
592
+ impl < ' tcx > rustc_serialize :: UseSpecializedDecodable for Ty < ' tcx > { }
593
593
594
594
pub type CanonicalTy < ' tcx > = Canonical < ' tcx , Ty < ' tcx > > ;
595
595
@@ -708,7 +708,7 @@ impl<'a, T> IntoIterator for &'a List<T> {
708
708
}
709
709
}
710
710
711
- impl < ' tcx > serialize :: UseSpecializedDecodable for & ' tcx List < Ty < ' tcx > > { }
711
+ impl < ' tcx > rustc_serialize :: UseSpecializedDecodable for & ' tcx List < Ty < ' tcx > > { }
712
712
713
713
impl < T > List < T > {
714
714
#[ inline( always) ]
@@ -1009,8 +1009,8 @@ pub struct GenericPredicates<'tcx> {
1009
1009
pub predicates : Vec < ( Predicate < ' tcx > , Span ) > ,
1010
1010
}
1011
1011
1012
- impl < ' tcx > serialize :: UseSpecializedEncodable for GenericPredicates < ' tcx > { }
1013
- impl < ' tcx > serialize :: UseSpecializedDecodable for GenericPredicates < ' tcx > { }
1012
+ impl < ' tcx > rustc_serialize :: UseSpecializedEncodable for GenericPredicates < ' tcx > { }
1013
+ impl < ' tcx > rustc_serialize :: UseSpecializedDecodable for GenericPredicates < ' tcx > { }
1014
1014
1015
1015
impl < ' tcx > GenericPredicates < ' tcx > {
1016
1016
pub fn instantiate (
@@ -1985,13 +1985,13 @@ impl Hash for AdtDef {
1985
1985
}
1986
1986
}
1987
1987
1988
- impl < ' tcx > serialize :: UseSpecializedEncodable for & ' tcx AdtDef {
1988
+ impl < ' tcx > rustc_serialize :: UseSpecializedEncodable for & ' tcx AdtDef {
1989
1989
fn default_encode < S : Encoder > ( & self , s : & mut S ) -> Result < ( ) , S :: Error > {
1990
1990
self . did . encode ( s)
1991
1991
}
1992
1992
}
1993
1993
1994
- impl < ' tcx > serialize :: UseSpecializedDecodable for & ' tcx AdtDef { }
1994
+ impl < ' tcx > rustc_serialize :: UseSpecializedDecodable for & ' tcx AdtDef { }
1995
1995
1996
1996
1997
1997
impl < ' a > HashStable < StableHashingContext < ' a > > for AdtDef {
0 commit comments