about summary refs log tree commit diff
path: root/compiler/rustc_middle/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-11-11 12:18:49 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2022-11-11 13:02:37 +0000
commit9d86e6abaf972bf3a31a8e5e3d948b7d5bf0d289 (patch)
tree7138db5ed5d68b29c892aac0c0172c06d9cd3401 /compiler/rustc_middle/src
parentd47424b8339e3c6f2e313ccc7bb08c6857d86e44 (diff)
Use the interned stable hash as plain hash.
Diffstat (limited to 'compiler/rustc_middle/src')
-rw-r--r--compiler/rustc_middle/src/ty/context.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs
index 8f96f5a9eb3..0ac712565b5 100644
--- a/compiler/rustc_middle/src/ty/context.rs
+++ b/compiler/rustc_middle/src/ty/context.rs
@@ -192,9 +192,7 @@ impl<'tcx> CtxtInterners<'tcx> {
 
                     // It's impossible to hash inference variables (and will ICE), so we don't need to try to cache them.
                     // Without incremental, we rarely stable-hash types, so let's not do it proactively.
-                    let stable_hash = if flags.flags.intersects(TypeFlags::NEEDS_INFER)
-                        || sess.opts.incremental.is_none()
-                    {
+                    let stable_hash = if flags.flags.intersects(TypeFlags::NEEDS_INFER) {
                         Fingerprint::ZERO
                     } else {
                         let mut hasher = StableHasher::new();