about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_middle/src/ty/context.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs
index 0416ed17977..6c0582a240e 100644
--- a/compiler/rustc_middle/src/ty/context.rs
+++ b/compiler/rustc_middle/src/ty/context.rs
@@ -157,17 +157,12 @@ impl<'tcx> CtxtInterners<'tcx> {
                         Fingerprint::ZERO
                     } else {
                         let mut hasher = StableHasher::new();
-                        let mut hcx = StableHashingContext::new(
+                        let mut hcx = StableHashingContext::ignore_spans(
                             sess,
                             &resolutions.definitions,
                             &*resolutions.cstore,
                         );
-
-                        hcx.while_hashing_spans(false, |hcx| {
-                            hcx.with_node_id_hashing_mode(NodeIdHashingMode::HashDefPath, |hcx| {
-                                kind.hash_stable(hcx, &mut hasher);
-                            });
-                        });
+                        kind.hash_stable(&mut hcx, &mut hasher);
                         hasher.finish()
                     };