diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-11-11 12:10:09 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-11-11 13:02:37 +0000 |
| commit | d47424b8339e3c6f2e313ccc7bb08c6857d86e44 (patch) | |
| tree | 70b3de7918d9cfea98ac63fd24e59bc7de3e8f3c /compiler/rustc_middle/src | |
| parent | c42a4245cc8dac5da7386de68ec6a37a4f63b8ed (diff) | |
| download | rust-d47424b8339e3c6f2e313ccc7bb08c6857d86e44.tar.gz rust-d47424b8339e3c6f2e313ccc7bb08c6857d86e44.zip | |
Hash spans when interning.
Diffstat (limited to 'compiler/rustc_middle/src')
| -rw-r--r-- | compiler/rustc_middle/src/ty/context.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs index 2a93df771e1..8f96f5a9eb3 100644 --- a/compiler/rustc_middle/src/ty/context.rs +++ b/compiler/rustc_middle/src/ty/context.rs @@ -198,12 +198,8 @@ impl<'tcx> CtxtInterners<'tcx> { Fingerprint::ZERO } else { let mut hasher = StableHasher::new(); - let mut hcx = StableHashingContext::ignore_spans( - sess, - definitions, - cstore, - source_span, - ); + let mut hcx = + StableHashingContext::new(sess, definitions, cstore, source_span); kind.hash_stable(&mut hcx, &mut hasher); hasher.finish() }; |
