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_middle/src/hir | |
| 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_middle/src/hir')
| -rw-r--r-- | compiler/rustc_middle/src/hir/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/hir/mod.rs b/compiler/rustc_middle/src/hir/mod.rs index f18067145dd..b50f121eff2 100644 --- a/compiler/rustc_middle/src/hir/mod.rs +++ b/compiler/rustc_middle/src/hir/mod.rs @@ -36,7 +36,7 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for Owner<'tcx> { /// Gather the LocalDefId for each item-like within a module, including items contained within /// bodies. The Ids are in visitor order. This is used to partition a pass between modules. -#[derive(Debug, HashStable)] +#[derive(Debug, HashStable, Encodable, Decodable)] pub struct ModuleItems { submodules: Box<[LocalDefId]>, items: Box<[ItemId]>, |
