diff options
| author | Ben Kimock <kimockb@gmail.com> | 2023-04-29 21:51:32 -0400 |
|---|---|---|
| committer | Ben Kimock <kimockb@gmail.com> | 2023-09-04 12:16:50 -0400 |
| commit | 94fe18f84be026b8e56e81e02545dafc6cfe7378 (patch) | |
| tree | fb2d6cc76a050268a1d5432afbd576e2deee0669 /compiler/rustc_serialize/src/opaque.rs | |
| parent | bf1e3f31f95c0f75b9bf51a58e8684f750f919f2 (diff) | |
| download | rust-94fe18f84be026b8e56e81e02545dafc6cfe7378.tar.gz rust-94fe18f84be026b8e56e81e02545dafc6cfe7378.zip | |
Use a specialized varint + bitpacking scheme for DepGraph encoding
Diffstat (limited to 'compiler/rustc_serialize/src/opaque.rs')
| -rw-r--r-- | compiler/rustc_serialize/src/opaque.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_serialize/src/opaque.rs b/compiler/rustc_serialize/src/opaque.rs index 0ffc537eee0..f1b7e8d9ae0 100644 --- a/compiler/rustc_serialize/src/opaque.rs +++ b/compiler/rustc_serialize/src/opaque.rs @@ -353,7 +353,7 @@ impl<'a> MemDecoder<'a> { } #[inline] - fn read_array<const N: usize>(&mut self) -> [u8; N] { + pub fn read_array<const N: usize>(&mut self) -> [u8; N] { self.read_raw_bytes(N).try_into().unwrap() } |
