]> git.lizzy.rs Git - rust.git/commitdiff
Update compiler/rustc_metadata/src/rmeta/mod.rs
authorCamille Gillot <gillot.camille@gmail.com>
Wed, 2 Jun 2021 12:00:49 +0000 (14:00 +0200)
committerGitHub <noreply@github.com>
Wed, 2 Jun 2021 12:00:49 +0000 (14:00 +0200)
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
compiler/rustc_metadata/src/rmeta/mod.rs

index a1819a19097cf09f99e69886d3a62f8c31b3ad3f..3793058062347325950c82741e396c6e027099d4 100644 (file)
@@ -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<T>` where `T` may not be `Sized`,
 /// e.g. for `Lazy<[T]>`, this is the length (count of `T` values).