Skip to content

Commit d76101d

Browse files
Backport fixes -- drop uses of NodeIdHashingMode
1 parent 7ce8e0e commit d76101d

File tree

1 file changed

+2
-6
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+2
-6
lines changed

compiler/rustc_middle/src/ty/mod.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ use rustc_ast as ast;
3232
use rustc_attr as attr;
3333
use rustc_data_structures::fx::{FxHashMap, FxHashSet, FxIndexMap};
3434
use rustc_data_structures::intern::Interned;
35-
use rustc_data_structures::stable_hasher::{HashStable, NodeIdHashingMode, StableHasher};
35+
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
3636
use rustc_data_structures::tagged_ptr::CopyTaggedPtr;
3737
use rustc_hir as hir;
3838
use rustc_hir::def::{CtorKind, CtorOf, DefKind, Res};
@@ -484,11 +484,7 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for Ty<'tcx> {
484484

485485
let stable_hash: Fingerprint = {
486486
let mut hasher = StableHasher::new();
487-
hcx.while_hashing_spans(false, |hcx| {
488-
hcx.with_node_id_hashing_mode(NodeIdHashingMode::HashDefPath, |hcx| {
489-
kind.hash_stable(hcx, &mut hasher)
490-
})
491-
});
487+
hcx.while_hashing_spans(false, |hcx| kind.hash_stable(hcx, &mut hasher));
492488
hasher.finish()
493489
};
494490
stable_hash.hash_stable(hcx, hasher);

0 commit comments

Comments
 (0)