diff options
| author | bors <bors@rust-lang.org> | 2022-04-13 11:27:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-04-13 11:27:17 +0000 |
| commit | f38c5c8e5d76ea9a87fece143425ef7c703c706a (patch) | |
| tree | 05774f4f660bfb0765be683efe20655447a316f5 /compiler/rustc_codegen_llvm/src | |
| parent | e3c43e64eceb00e13b1932229aa9b2d774e6af96 (diff) | |
| parent | 0927a35e807eccd0bffc3811e44e2fc3b8616849 (diff) | |
| download | rust-f38c5c8e5d76ea9a87fece143425ef7c703c706a.tar.gz rust-f38c5c8e5d76ea9a87fece143425ef7c703c706a.zip | |
Auto merge of #95656 - cjgillot:no-id-hashing-mode, r=Aaron1011
Remove NodeIdHashingMode. r? `@ghost`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/debuginfo/metadata/type_map.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/metadata/type_map.rs b/compiler/rustc_codegen_llvm/src/debuginfo/metadata/type_map.rs index 8ce44ada887..87fbb737ea8 100644 --- a/compiler/rustc_codegen_llvm/src/debuginfo/metadata/type_map.rs +++ b/compiler/rustc_codegen_llvm/src/debuginfo/metadata/type_map.rs @@ -3,7 +3,7 @@ use std::cell::RefCell; use rustc_data_structures::{ fingerprint::Fingerprint, fx::FxHashMap, - stable_hasher::{HashStable, NodeIdHashingMode, StableHasher}, + stable_hasher::{HashStable, StableHasher}, }; use rustc_middle::{ bug, @@ -94,11 +94,7 @@ impl<'tcx> UniqueTypeId<'tcx> { pub fn generate_unique_id_string(self, tcx: TyCtxt<'tcx>) -> String { let mut hasher = StableHasher::new(); let mut hcx = tcx.create_stable_hashing_context(); - hcx.while_hashing_spans(false, |hcx| { - hcx.with_node_id_hashing_mode(NodeIdHashingMode::HashDefPath, |hcx| { - self.hash_stable(hcx, &mut hasher); - }); - }); + hcx.while_hashing_spans(false, |hcx| self.hash_stable(hcx, &mut hasher)); hasher.finish::<Fingerprint>().to_hex() } |
