diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-05-03 22:14:44 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-07-06 23:26:54 +0200 |
| commit | 2c3b4ff995c3595df22baaa1da2514946aed56e3 (patch) | |
| tree | 1b75f78c4b61e59361409c7f5216e168d3c9990c | |
| parent | e475a69fa8d5da30be90179b883704d0ba74c150 (diff) | |
| download | rust-2c3b4ff995c3595df22baaa1da2514946aed56e3.tar.gz rust-2c3b4ff995c3595df22baaa1da2514946aed56e3.zip | |
Remove dead code.
| -rw-r--r-- | compiler/rustc_middle/src/ty/context.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs index 38e4095997c..a594dab2e20 100644 --- a/compiler/rustc_middle/src/ty/context.rs +++ b/compiler/rustc_middle/src/ty/context.rs @@ -1561,21 +1561,6 @@ impl<'tcx> TyCtxt<'tcx> { f(hcx) } - #[inline(always)] - pub fn with_no_span_stable_hashing_context<R>( - self, - f: impl FnOnce(StableHashingContext<'_>) -> R, - ) -> R { - let definitions = self.definitions_untracked(); - let hcx = StableHashingContext::ignore_spans( - self.sess, - &*definitions, - &*self.cstore, - &self.untracked_resolutions.source_span, - ); - f(hcx) - } - pub fn serialize_query_result_cache(self, encoder: FileEncoder) -> FileEncodeResult { self.on_disk_cache.as_ref().map_or(Ok(0), |c| c.serialize(self, encoder)) } |
