Fix HashStable implementation on InferTy
This commit is contained in:
parent
8f117a77d0
commit
75729afcc0
2 changed files with 18 additions and 0 deletions
|
|
@ -559,6 +559,7 @@ impl<CTX> HashStable<CTX> for FloatTy {
|
|||
impl<CTX> HashStable<CTX> for InferTy {
|
||||
fn hash_stable(&self, ctx: &mut CTX, hasher: &mut StableHasher) {
|
||||
use InferTy::*;
|
||||
discriminant(self).hash_stable(ctx, hasher);
|
||||
match self {
|
||||
TyVar(v) => v.as_u32().hash_stable(ctx, hasher),
|
||||
IntVar(v) => v.index.hash_stable(ctx, hasher),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue