about summary refs log tree commit diff
path: root/src/librustc/ich
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2017-05-11 15:05:00 +0300
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2017-05-13 17:42:59 +0300
commit2da080e779b4e6f4359c031824c3bdcedad452fd (patch)
tree891c3e4d560110edf05dbace4c47d767b13aa06e /src/librustc/ich
parentdbae169ac16de632d21fd3394bc8a939b2524512 (diff)
downloadrust-2da080e779b4e6f4359c031824c3bdcedad452fd.tar.gz
rust-2da080e779b4e6f4359c031824c3bdcedad452fd.zip
rustc: treat ReEarlyBound as free without replacing it with ReFree.
Diffstat (limited to 'src/librustc/ich')
-rw-r--r--src/librustc/ich/impls_ty.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc/ich/impls_ty.rs b/src/librustc/ich/impls_ty.rs
index f822361198f..f9a86c2f010 100644
--- a/src/librustc/ich/impls_ty.rs
+++ b/src/librustc/ich/impls_ty.rs
@@ -54,7 +54,8 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a, 'tcx>> for ty::RegionKind<'tc
                 db.depth.hash_stable(hcx, hasher);
                 i.hash_stable(hcx, hasher);
             }
-            ty::ReEarlyBound(ty::EarlyBoundRegion { index, name }) => {
+            ty::ReEarlyBound(ty::EarlyBoundRegion { def_id, index, name }) => {
+                def_id.hash_stable(hcx, hasher);
                 index.hash_stable(hcx, hasher);
                 name.hash_stable(hcx, hasher);
             }