diff options
| author | bors <bors@rust-lang.org> | 2022-05-20 20:49:55 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-05-20 20:49:55 +0000 |
| commit | e6a4afc3af2d2a53f91fc8a77bdfe94bea375b29 (patch) | |
| tree | 14d054778cac31bd027131e6b616216590c32543 /compiler/rustc_metadata/src | |
| parent | 536020c5f97883aa9f2a90897a5adb520486d2e1 (diff) | |
| parent | 29f3b3fe4914f3e5f1d1f484cd1bcfb7e677c433 (diff) | |
| download | rust-e6a4afc3af2d2a53f91fc8a77bdfe94bea375b29.tar.gz rust-e6a4afc3af2d2a53f91fc8a77bdfe94bea375b29.zip | |
Auto merge of #95418 - cjgillot:more-disk, r=davidtwco
Cache more queries on disk One of the principles of incremental compilation is to allow saving results on disk to avoid recomputing them. This PR investigates persisting a lot of queries whose result are to be saved into metadata. Some of the queries are cheap reads from HIR, but we may also want to get rid of these reads for incremental lowering.
Diffstat (limited to 'compiler/rustc_metadata/src')
| -rw-r--r-- | compiler/rustc_metadata/src/rmeta/encoder.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/compiler/rustc_metadata/src/rmeta/encoder.rs b/compiler/rustc_metadata/src/rmeta/encoder.rs index b933409e98d..e66d226a441 100644 --- a/compiler/rustc_metadata/src/rmeta/encoder.rs +++ b/compiler/rustc_metadata/src/rmeta/encoder.rs @@ -24,7 +24,6 @@ use rustc_middle::middle::exported_symbols::{ metadata_symbol_name, ExportedSymbol, SymbolExportInfo, }; use rustc_middle::mir::interpret; -use rustc_middle::thir; use rustc_middle::traits::specialization_graph; use rustc_middle::ty::codec::TyEncoder; use rustc_middle::ty::fast_reject::{self, SimplifiedType, TreatParams}; @@ -346,18 +345,6 @@ impl<'a, 'tcx> TyEncoder<'tcx> for EncodeContext<'a, 'tcx> { } } -impl<'a, 'tcx> Encodable<EncodeContext<'a, 'tcx>> for &'tcx [thir::abstract_const::Node<'tcx>] { - fn encode(&self, s: &mut EncodeContext<'a, 'tcx>) -> opaque::EncodeResult { - (**self).encode(s) - } -} - -impl<'a, 'tcx> Encodable<EncodeContext<'a, 'tcx>> for &'tcx [(ty::Predicate<'tcx>, Span)] { - fn encode(&self, s: &mut EncodeContext<'a, 'tcx>) -> opaque::EncodeResult { - (**self).encode(s) - } -} - /// Helper trait to allow overloading `EncodeContext::lazy` for iterators. trait EncodeContentsForLazy<'a, 'tcx, T: ?Sized + LazyMeta> { fn encode_contents_for_lazy(self, ecx: &mut EncodeContext<'a, 'tcx>) -> T::Meta; |
