From 75729afcc040f8df101baebc7eba438dfb044d72 Mon Sep 17 00:00:00 2001 From: Michael Goulet Date: Mon, 13 Dec 2021 20:36:17 -0800 Subject: Fix HashStable implementation on InferTy --- compiler/rustc_type_ir/src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler') diff --git a/compiler/rustc_type_ir/src/lib.rs b/compiler/rustc_type_ir/src/lib.rs index 91dbbec782f..f11c93e9339 100644 --- a/compiler/rustc_type_ir/src/lib.rs +++ b/compiler/rustc_type_ir/src/lib.rs @@ -559,6 +559,7 @@ impl HashStable for FloatTy { impl HashStable 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), -- cgit 1.4.1-3-g733a5