From d76101d8d8186f262ea9c32b31716e708997e9e4 Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Sun, 24 Apr 2022 17:36:51 -0400 Subject: [PATCH] Backport fixes -- drop uses of NodeIdHashingMode --- compiler/rustc_middle/src/ty/mod.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/compiler/rustc_middle/src/ty/mod.rs b/compiler/rustc_middle/src/ty/mod.rs index 37425c91157b3..fc085ac7c3217 100644 --- a/compiler/rustc_middle/src/ty/mod.rs +++ b/compiler/rustc_middle/src/ty/mod.rs @@ -32,7 +32,7 @@ use rustc_ast as ast; use rustc_attr as attr; use rustc_data_structures::fx::{FxHashMap, FxHashSet, FxIndexMap}; use rustc_data_structures::intern::Interned; -use rustc_data_structures::stable_hasher::{HashStable, NodeIdHashingMode, StableHasher}; +use rustc_data_structures::stable_hasher::{HashStable, StableHasher}; use rustc_data_structures::tagged_ptr::CopyTaggedPtr; use rustc_hir as hir; use rustc_hir::def::{CtorKind, CtorOf, DefKind, Res}; @@ -484,11 +484,7 @@ impl<'a, 'tcx> HashStable> for Ty<'tcx> { let stable_hash: Fingerprint = { let mut hasher = StableHasher::new(); - hcx.while_hashing_spans(false, |hcx| { - hcx.with_node_id_hashing_mode(NodeIdHashingMode::HashDefPath, |hcx| { - kind.hash_stable(hcx, &mut hasher) - }) - }); + hcx.while_hashing_spans(false, |hcx| kind.hash_stable(hcx, &mut hasher)); hasher.finish() }; stable_hash.hash_stable(hcx, hasher);