Skip to content

Commit

Permalink
Rollup merge of #89142 - nerandell:master, r=jackh726
Browse files Browse the repository at this point in the history
Fix match for placeholder region

cc #89118
  • Loading branch information
the8472 authored Sep 21, 2021
2 parents 17c9a22 + d4ee698 commit aca790b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion compiler/rustc_middle/src/ich/impls_ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit aca790b

Please sign in to comment.