From: Camille Gillot Date: Wed, 2 Jun 2021 12:00:49 +0000 (+0200) Subject: Update compiler/rustc_metadata/src/rmeta/mod.rs X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=4e3b220b02dafe2cad7d8cfdc604caf436e820c7;p=rust.git Update compiler/rustc_metadata/src/rmeta/mod.rs Co-authored-by: bjorn3 --- diff --git a/compiler/rustc_metadata/src/rmeta/mod.rs b/compiler/rustc_metadata/src/rmeta/mod.rs index a1819a19097..37930580623 100644 --- a/compiler/rustc_metadata/src/rmeta/mod.rs +++ b/compiler/rustc_metadata/src/rmeta/mod.rs @@ -51,7 +51,7 @@ /// This header is followed by the position of the `CrateRoot`, /// which is encoded as a 32-bit big-endian unsigned integer, /// and further followed by the rustc version string. -pub const METADATA_HEADER: &[u8; 8] = &[b'r', b'u', b's', b't', 0, 0, 0, METADATA_VERSION]; +pub const METADATA_HEADER: &[u8] = &[b'r', b'u', b's', b't', 0, 0, 0, METADATA_VERSION]; /// Additional metadata for a `Lazy` where `T` may not be `Sized`, /// e.g. for `Lazy<[T]>`, this is the length (count of `T` values).