We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9327272 commit 8d4f4e4Copy full SHA for 8d4f4e4
compiler/rustc_middle/src/ty/context.rs
@@ -157,17 +157,12 @@ impl<'tcx> CtxtInterners<'tcx> {
157
Fingerprint::ZERO
158
} else {
159
let mut hasher = StableHasher::new();
160
- let mut hcx = StableHashingContext::new(
+ let mut hcx = StableHashingContext::ignore_spans(
161
sess,
162
&resolutions.definitions,
163
&*resolutions.cstore,
164
);
165
-
166
- hcx.while_hashing_spans(false, |hcx| {
167
- hcx.with_node_id_hashing_mode(NodeIdHashingMode::HashDefPath, |hcx| {
168
- kind.hash_stable(hcx, &mut hasher);
169
- });
170
+ kind.hash_stable(&mut hcx, &mut hasher);
171
hasher.finish()
172
};
173
0 commit comments