@@ -19,7 +19,7 @@ pub type SimplifiedType = SimplifiedTypeGen<DefId>;
1919/// the non-stable but fast to construct DefId-version is the better choice.
2020#[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , PartialOrd , Ord , RustcEncodable , RustcDecodable ) ]
2121pub enum SimplifiedTypeGen < D >
22- where D : Copy + Debug + Ord + Eq + Hash
22+ where D : Copy + Debug + Ord + Eq
2323{
2424 BoolSimplifiedType ,
2525 CharSimplifiedType ,
@@ -123,10 +123,10 @@ pub fn simplify_type(
123123 }
124124}
125125
126- impl < D : Copy + Debug + Ord + Eq + Hash > SimplifiedTypeGen < D > {
126+ impl < D : Copy + Debug + Ord + Eq > SimplifiedTypeGen < D > {
127127 pub fn map_def < U , F > ( self , map : F ) -> SimplifiedTypeGen < U >
128128 where F : Fn ( D ) -> U ,
129- U : Copy + Debug + Ord + Eq + Hash ,
129+ U : Copy + Debug + Ord + Eq ,
130130 {
131131 match self {
132132 BoolSimplifiedType => BoolSimplifiedType ,
@@ -155,7 +155,7 @@ impl<D: Copy + Debug + Ord + Eq + Hash> SimplifiedTypeGen<D> {
155155
156156impl < ' a , D > HashStable < StableHashingContext < ' a > > for SimplifiedTypeGen < D >
157157where
158- D : Copy + Debug + Ord + Eq + Hash + HashStable < StableHashingContext < ' a > > ,
158+ D : Copy + Debug + Ord + Eq + HashStable < StableHashingContext < ' a > > ,
159159{
160160 fn hash_stable ( & self , hcx : & mut StableHashingContext < ' a > , hasher : & mut StableHasher ) {
161161 mem:: discriminant ( self ) . hash_stable ( hcx, hasher) ;
0 commit comments