diff options
| author | Tshepang Mbambo <tshepang@gmail.com> | 2023-09-15 16:40:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-15 23:40:09 +0900 |
| commit | 1f3a6d62ef15f7247b3a7d6ff1ab337498a9246e (patch) | |
| tree | a47283054ddf0d8053eba3db7d075efc0ec98f41 /src/doc/rustc-dev-guide | |
| parent | d304f25bb9cd7026e4b93a5351115d7a826f3e18 (diff) | |
| download | rust-1f3a6d62ef15f7247b3a7d6ff1ab337498a9246e.tar.gz rust-1f3a6d62ef15f7247b3a7d6ff1ab337498a9246e.zip | |
fix type name (#1792)
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/serialization.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rustc-dev-guide/src/serialization.md b/src/doc/rustc-dev-guide/src/serialization.md index 78b065311c3..c796281060c 100644 --- a/src/doc/rustc-dev-guide/src/serialization.md +++ b/src/doc/rustc-dev-guide/src/serialization.md @@ -108,7 +108,7 @@ and `Encodable`. - `MetadataEncodable` and `MetadataDecodable` generate implementations that only allow decoding by [`rustc_metadata::rmeta::encoder::EncodeContext`] and [`rustc_metadata::rmeta::decoder::DecodeContext`]. These are used for types - that contain `rustc_metadata::rmeta::Lazy`. + that contain `rustc_metadata::rmeta::Lazy*`. - `TyEncodable` and `TyDecodable` generate implementation that apply to any `TyEncoder` or `TyDecoder`. These should be used for types that are only serialized in crate metadata and/or the incremental cache, which is most @@ -130,7 +130,7 @@ some deserialization needs to be deferred from the initial loading of metadata. The [`LazyValue<T>`] type wraps the (relative) offset in the crate metadata where a `T` has been serialized. There are also some variants, [`LazyArray<T>`] and [`LazyTable<I, T>`]. -The `Lazy<[T]>` and `LazyTable<I, T>` types provide some functionality over +The `LazyArray<[T]>` and `LazyTable<I, T>` types provide some functionality over `Lazy<Vec<T>>` and `Lazy<HashMap<I, T>>`: - It's possible to encode a `LazyArray<T>` directly from an iterator, without |
