Rollup merge of #80204 - pierwill:pierwill-rustcmiddle-ondisk, r=varkor

docs: Edit rustc_middle::ty::query::on_disk_cache

Expand abbreviations for "incremental compliation".

Also added the word "to" to the description of CacheEncoder.
This commit is contained in:
Guillaume Gomez 2020-12-23 00:13:34 +01:00 committed by GitHub
commit 8a35d3a08e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -666,7 +666,7 @@ impl<'sess> OnDiskCache<'sess> {
//- DECODING ------------------------------------------------------------------- //- DECODING -------------------------------------------------------------------
/// A decoder that can read from the incr. comp. cache. It is similar to the one /// A decoder that can read from the incremental compilation cache. It is similar to the one
/// we use for crate metadata decoding in that it can rebase spans and eventually /// we use for crate metadata decoding in that it can rebase spans and eventually
/// will also handle things that contain `Ty` instances. /// will also handle things that contain `Ty` instances.
crate struct CacheDecoder<'a, 'tcx> { crate struct CacheDecoder<'a, 'tcx> {
@ -954,7 +954,7 @@ impl<'a, 'tcx> Decodable<CacheDecoder<'a, 'tcx>> for &'tcx [Span] {
//- ENCODING ------------------------------------------------------------------- //- ENCODING -------------------------------------------------------------------
/// An encoder that can write the incr. comp. cache. /// An encoder that can write to the incremental compilation cache.
struct CacheEncoder<'a, 'tcx, E: OpaqueEncoder> { struct CacheEncoder<'a, 'tcx, E: OpaqueEncoder> {
tcx: TyCtxt<'tcx>, tcx: TyCtxt<'tcx>,
encoder: &'a mut E, encoder: &'a mut E,