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_index/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_index/src')
| -rw-r--r-- | compiler/rustc_index/src/vec.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/rustc_index/src/vec.rs b/compiler/rustc_index/src/vec.rs index 4656994ac08..a8c611e18ff 100644 --- a/compiler/rustc_index/src/vec.rs +++ b/compiler/rustc_index/src/vec.rs @@ -65,12 +65,6 @@ impl<S: Encoder, I: Idx, T: Encodable<S>> Encodable<S> for IndexVec<I, T> { } } -impl<S: Encoder, I: Idx, T: Encodable<S>> Encodable<S> for &IndexVec<I, T> { - fn encode(&self, s: &mut S) -> Result<(), S::Error> { - Encodable::encode(&self.raw, s) - } -} - impl<D: Decoder, I: Idx, T: Decodable<D>> Decodable<D> for IndexVec<I, T> { fn decode(d: &mut D) -> Self { IndexVec { raw: Decodable::decode(d), _marker: PhantomData } |
