Skip to content

Commit 8d4f4e4

Browse files
committed
Remove redundant hashing configuration logic in type interner
1 parent 9327272 commit 8d4f4e4

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Diff for: compiler/rustc_middle/src/ty/context.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -157,17 +157,12 @@ impl<'tcx> CtxtInterners<'tcx> {
157157
Fingerprint::ZERO
158158
} else {
159159
let mut hasher = StableHasher::new();
160-
let mut hcx = StableHashingContext::new(
160+
let mut hcx = StableHashingContext::ignore_spans(
161161
sess,
162162
&resolutions.definitions,
163163
&*resolutions.cstore,
164164
);
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-
});
165+
kind.hash_stable(&mut hcx, &mut hasher);
171166
hasher.finish()
172167
};
173168

0 commit comments

Comments
 (0)