1
Fork 0

Fix match for placeholder region

This commit is contained in:
Ankit Chandawala 2021-09-21 09:31:59 +01:00
parent e7958d35ca
commit d4ee6982e4

View file

@ -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)
}
}