about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAnkit Chandawala <achandaw@amazon.com>2021-09-21 09:31:59 +0100
committerAnkit Chandawala <achandaw@amazon.com>2021-09-21 09:31:59 +0100
commitd4ee6982e459c7a39051b15920a07cda2810a8f2 (patch)
treeead9a142bf60dd4ad84560d4d132101ed18f1594
parente7958d35ca2c898a223efe402481e0ecb854310a (diff)
downloadrust-d4ee6982e459c7a39051b15920a07cda2810a8f2.tar.gz
rust-d4ee6982e459c7a39051b15920a07cda2810a8f2.zip
Fix match for placeholder region
-rw-r--r--compiler/rustc_middle/src/ich/impls_ty.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ich/impls_ty.rs b/compiler/rustc_middle/src/ich/impls_ty.rs
index 8e53e4ba948..3b0640eb98d 100644
--- a/compiler/rustc_middle/src/ich/impls_ty.rs
+++ b/compiler/rustc_middle/src/ich/impls_ty.rs
@@ -90,7 +90,10 @@ impl<'a> HashStable<StableHashingContext<'a>> for ty::RegionKind {
             ty::ReFree(ref free_region) => {
                 free_region.hash_stable(hcx, hasher);
             }
-            ty::ReVar(..) | ty::RePlaceholder(..) => {
+            ty::RePlaceholder(p) => {
+                p.hash_stable(hcx, hasher);
+            }
+            ty::ReVar(..) => {
                 bug!("StableHasher: unexpected region {:?}", *self)
             }
         }