@@ -25,7 +25,7 @@ use ty;
2525use mir;
2626
2727impl < ' a , ' gcx , T > HashStable < StableHashingContext < ' a > >
28- for & ' gcx ty:: Slice < T >
28+ for & ' gcx ty:: List < T >
2929 where T : HashStable < StableHashingContext < ' a > > {
3030 fn hash_stable < W : StableHasherResult > ( & self ,
3131 hcx : & mut StableHashingContext < ' a > ,
@@ -53,7 +53,7 @@ for &'gcx ty::Slice<T>
5353 }
5454}
5555
56- impl < ' a , ' gcx , T > ToStableHashKey < StableHashingContext < ' a > > for & ' gcx ty:: Slice < T >
56+ impl < ' a , ' gcx , T > ToStableHashKey < StableHashingContext < ' a > > for & ' gcx ty:: List < T >
5757 where T : HashStable < StableHashingContext < ' a > >
5858{
5959 type KeyType = Fingerprint ;
@@ -797,90 +797,90 @@ impl_stable_hash_for!(enum ty::BoundRegion {
797797} ) ;
798798
799799impl < ' a , ' gcx > HashStable < StableHashingContext < ' a > >
800- for ty:: TypeVariants < ' gcx >
800+ for ty:: TyKind < ' gcx >
801801{
802802 fn hash_stable < W : StableHasherResult > ( & self ,
803803 hcx : & mut StableHashingContext < ' a > ,
804804 hasher : & mut StableHasher < W > ) {
805- use ty:: TypeVariants :: * ;
805+ use ty:: TyKind :: * ;
806806
807807 mem:: discriminant ( self ) . hash_stable ( hcx, hasher) ;
808808 match * self {
809- TyBool |
810- TyChar |
811- TyStr |
812- TyError |
813- TyNever => {
809+ Bool |
810+ Char |
811+ Str |
812+ Error |
813+ Never => {
814814 // Nothing more to hash.
815815 }
816- TyInt ( int_ty) => {
816+ Int ( int_ty) => {
817817 int_ty. hash_stable ( hcx, hasher) ;
818818 }
819- TyUint ( uint_ty) => {
819+ Uint ( uint_ty) => {
820820 uint_ty. hash_stable ( hcx, hasher) ;
821821 }
822- TyFloat ( float_ty) => {
822+ Float ( float_ty) => {
823823 float_ty. hash_stable ( hcx, hasher) ;
824824 }
825- TyAdt ( adt_def, substs) => {
825+ Adt ( adt_def, substs) => {
826826 adt_def. hash_stable ( hcx, hasher) ;
827827 substs. hash_stable ( hcx, hasher) ;
828828 }
829- TyArray ( inner_ty, len) => {
829+ Array ( inner_ty, len) => {
830830 inner_ty. hash_stable ( hcx, hasher) ;
831831 len. hash_stable ( hcx, hasher) ;
832832 }
833- TySlice ( inner_ty) => {
833+ Slice ( inner_ty) => {
834834 inner_ty. hash_stable ( hcx, hasher) ;
835835 }
836- TyRawPtr ( pointee_ty) => {
836+ RawPtr ( pointee_ty) => {
837837 pointee_ty. hash_stable ( hcx, hasher) ;
838838 }
839- TyRef ( region, pointee_ty, mutbl) => {
839+ Ref ( region, pointee_ty, mutbl) => {
840840 region. hash_stable ( hcx, hasher) ;
841841 pointee_ty. hash_stable ( hcx, hasher) ;
842842 mutbl. hash_stable ( hcx, hasher) ;
843843 }
844- TyFnDef ( def_id, substs) => {
844+ FnDef ( def_id, substs) => {
845845 def_id. hash_stable ( hcx, hasher) ;
846846 substs. hash_stable ( hcx, hasher) ;
847847 }
848- TyFnPtr ( ref sig) => {
848+ FnPtr ( ref sig) => {
849849 sig. hash_stable ( hcx, hasher) ;
850850 }
851- TyDynamic ( ref existential_predicates, region) => {
851+ Dynamic ( ref existential_predicates, region) => {
852852 existential_predicates. hash_stable ( hcx, hasher) ;
853853 region. hash_stable ( hcx, hasher) ;
854854 }
855- TyClosure ( def_id, closure_substs) => {
855+ Closure ( def_id, closure_substs) => {
856856 def_id. hash_stable ( hcx, hasher) ;
857857 closure_substs. hash_stable ( hcx, hasher) ;
858858 }
859- TyGenerator ( def_id, generator_substs, movability) => {
859+ Generator ( def_id, generator_substs, movability) => {
860860 def_id. hash_stable ( hcx, hasher) ;
861861 generator_substs. hash_stable ( hcx, hasher) ;
862862 movability. hash_stable ( hcx, hasher) ;
863863 }
864- TyGeneratorWitness ( types) => {
864+ GeneratorWitness ( types) => {
865865 types. hash_stable ( hcx, hasher)
866866 }
867- TyTuple ( inner_tys) => {
867+ Tuple ( inner_tys) => {
868868 inner_tys. hash_stable ( hcx, hasher) ;
869869 }
870- TyProjection ( ref projection_ty) => {
870+ Projection ( ref projection_ty) => {
871871 projection_ty. hash_stable ( hcx, hasher) ;
872872 }
873- TyAnon ( def_id, substs) => {
873+ Anon ( def_id, substs) => {
874874 def_id. hash_stable ( hcx, hasher) ;
875875 substs. hash_stable ( hcx, hasher) ;
876876 }
877- TyParam ( param_ty) => {
877+ Param ( param_ty) => {
878878 param_ty. hash_stable ( hcx, hasher) ;
879879 }
880- TyForeign ( def_id) => {
880+ Foreign ( def_id) => {
881881 def_id. hash_stable ( hcx, hasher) ;
882882 }
883- TyInfer ( infer_ty) => {
883+ Infer ( infer_ty) => {
884884 infer_ty. hash_stable ( hcx, hasher) ;
885885 }
886886 }
@@ -905,7 +905,7 @@ for ty::TyVid
905905 _hasher : & mut StableHasher < W > ) {
906906 // TyVid values are confined to an inference context and hence
907907 // should not be hashed.
908- bug ! ( "ty::TypeVariants ::hash_stable() - can't hash a TyVid {:?}." , * self )
908+ bug ! ( "ty::TyKind ::hash_stable() - can't hash a TyVid {:?}." , * self )
909909 }
910910}
911911
@@ -917,7 +917,7 @@ for ty::IntVid
917917 _hasher : & mut StableHasher < W > ) {
918918 // IntVid values are confined to an inference context and hence
919919 // should not be hashed.
920- bug ! ( "ty::TypeVariants ::hash_stable() - can't hash an IntVid {:?}." , * self )
920+ bug ! ( "ty::TyKind ::hash_stable() - can't hash an IntVid {:?}." , * self )
921921 }
922922}
923923
@@ -929,7 +929,7 @@ for ty::FloatVid
929929 _hasher : & mut StableHasher < W > ) {
930930 // FloatVid values are confined to an inference context and hence
931931 // should not be hashed.
932- bug ! ( "ty::TypeVariants ::hash_stable() - can't hash a FloatVid {:?}." , * self )
932+ bug ! ( "ty::TyKind ::hash_stable() - can't hash a FloatVid {:?}." , * self )
933933 }
934934}
935935
0 commit comments