diff options
| author | the8472 <the8472@users.noreply.github.com> | 2021-09-21 22:54:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-21 22:54:07 +0200 |
| commit | aca790b3d62784ae6399ac2337a1147ea9aab9b8 (patch) | |
| tree | 2b24b21bd2d1f4b05b2311c30540e2d94ff576c7 | |
| parent | 17c9a22d482acfac304f8d2c61cfea7e8cde8a9a (diff) | |
| parent | d4ee6982e459c7a39051b15920a07cda2810a8f2 (diff) | |
| download | rust-aca790b3d62784ae6399ac2337a1147ea9aab9b8.tar.gz rust-aca790b3d62784ae6399ac2337a1147ea9aab9b8.zip | |
Rollup merge of #89142 - nerandell:master, r=jackh726
Fix match for placeholder region cc #89118
| -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) } } |
