]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_middle/src/ty/util.rs
Rollup merge of #90312 - r00ster91:search, r=Dylan-DPC
[rust.git] / compiler / rustc_middle / src / ty / util.rs
index a9749716ce8927d5eeb8c3e5a93e752fc65ba1a6..39038e85b11a086a52733ca6a542deea4018237a 100644 (file)
@@ -18,7 +18,6 @@
 use rustc_hir::def::{CtorOf, DefKind, Res};
 use rustc_hir::def_id::DefId;
 use rustc_macros::HashStable;
-use rustc_query_system::ich::NodeIdHashingMode;
 use rustc_span::{sym, DUMMY_SP};
 use rustc_target::abi::{Integer, Size, TargetDataLayout};
 use smallvec::SmallVec;
@@ -136,11 +135,7 @@ pub fn type_id_hash(self, ty: Ty<'tcx>) -> u64 {
         // regions, which is desirable too.
         let ty = self.erase_regions(ty);
 
-        hcx.while_hashing_spans(false, |hcx| {
-            hcx.with_node_id_hashing_mode(NodeIdHashingMode::HashDefPath, |hcx| {
-                ty.hash_stable(hcx, &mut hasher);
-            });
-        });
+        hcx.while_hashing_spans(false, |hcx| ty.hash_stable(hcx, &mut hasher));
         hasher.finish()
     }