diff options
| author | Ankit Chandawala <achandaw@amazon.com> | 2021-09-21 09:31:59 +0100 |
|---|---|---|
| committer | Ankit Chandawala <achandaw@amazon.com> | 2021-09-21 09:31:59 +0100 |
| commit | d4ee6982e459c7a39051b15920a07cda2810a8f2 (patch) | |
| tree | ead9a142bf60dd4ad84560d4d132101ed18f1594 | |
| parent | e7958d35ca2c898a223efe402481e0ecb854310a (diff) | |
| download | rust-d4ee6982e459c7a39051b15920a07cda2810a8f2.tar.gz rust-d4ee6982e459c7a39051b15920a07cda2810a8f2.zip | |
Fix match for placeholder region
| -rw-r--r-- | compiler/rustc_middle/src/ich/impls_ty.rs | 5 |
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) } } |
