Fix match for placeholder region
This commit is contained in:
parent
e7958d35ca
commit
d4ee6982e4
1 changed files with 4 additions and 1 deletions
|
@ -90,7 +90,10 @@ impl<'a> HashStable<StableHashingContext<'a>> for ty::RegionKind {
|
||||||
ty::ReFree(ref free_region) => {
|
ty::ReFree(ref free_region) => {
|
||||||
free_region.hash_stable(hcx, hasher);
|
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)
|
bug!("StableHasher: unexpected region {:?}", *self)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue