@@ -19,7 +19,7 @@ pub type SimplifiedType = SimplifiedTypeGen<DefId>;
19
19
/// the non-stable but fast to construct DefId-version is the better choice.
20
20
#[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , PartialOrd , Ord , RustcEncodable , RustcDecodable ) ]
21
21
pub enum SimplifiedTypeGen < D >
22
- where D : Copy + Debug + Ord + Eq + Hash
22
+ where D : Copy + Debug + Ord + Eq
23
23
{
24
24
BoolSimplifiedType ,
25
25
CharSimplifiedType ,
@@ -123,10 +123,10 @@ pub fn simplify_type(
123
123
}
124
124
}
125
125
126
- impl < D : Copy + Debug + Ord + Eq + Hash > SimplifiedTypeGen < D > {
126
+ impl < D : Copy + Debug + Ord + Eq > SimplifiedTypeGen < D > {
127
127
pub fn map_def < U , F > ( self , map : F ) -> SimplifiedTypeGen < U >
128
128
where F : Fn ( D ) -> U ,
129
- U : Copy + Debug + Ord + Eq + Hash ,
129
+ U : Copy + Debug + Ord + Eq ,
130
130
{
131
131
match self {
132
132
BoolSimplifiedType => BoolSimplifiedType ,
@@ -155,7 +155,7 @@ impl<D: Copy + Debug + Ord + Eq + Hash> SimplifiedTypeGen<D> {
155
155
156
156
impl < ' a , D > HashStable < StableHashingContext < ' a > > for SimplifiedTypeGen < D >
157
157
where
158
- D : Copy + Debug + Ord + Eq + Hash + HashStable < StableHashingContext < ' a > > ,
158
+ D : Copy + Debug + Ord + Eq + HashStable < StableHashingContext < ' a > > ,
159
159
{
160
160
fn hash_stable ( & self , hcx : & mut StableHashingContext < ' a > , hasher : & mut StableHasher ) {
161
161
mem:: discriminant ( self ) . hash_stable ( hcx, hasher) ;
0 commit comments