]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/ich/impls_ty.rs
[incremental] Hash `Allocation`s
[rust.git] / src / librustc / ich / impls_ty.rs
index f86913490258e51c11d72f1fba3fe1b08836fd68..af4d3429bb1d57699210dd13645a0f07598a0e5c 100644 (file)
@@ -417,7 +417,7 @@ fn hash_stable<W: StableHasherResult>(
             let tcx = tcx.expect("can't hash AllocIds during hir lowering");
             if let Some(alloc) = tcx.interpret_interner.get_alloc(*self) {
                 AllocDiscriminant::Alloc.hash_stable(hcx, hasher);
-                if !hcx.alloc_id_recursion_tracker.insert(*self) {
+                if hcx.alloc_id_recursion_tracker.insert(*self) {
                     tcx
                         .interpret_interner
                         .get_corresponding_static_def_id(*self)