about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamille Gillot <gillot.camille@gmail.com>2021-06-02 14:00:49 +0200
committerGitHub <noreply@github.com>2021-06-02 14:00:49 +0200
commit4e3b220b02dafe2cad7d8cfdc604caf436e820c7 (patch)
treef5248b4ec52eb951cd222be2b1f9741a39e441f3
parent202d39a96bb2ec64c0e1f1fc4229a473ed810a5f (diff)
downloadrust-4e3b220b02dafe2cad7d8cfdc604caf436e820c7.tar.gz
rust-4e3b220b02dafe2cad7d8cfdc604caf436e820c7.zip
Update compiler/rustc_metadata/src/rmeta/mod.rs
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
-rw-r--r--compiler/rustc_metadata/src/rmeta/mod.rs2
1 files changed, 1 insertions, 1 deletions
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 @@ const METADATA_VERSION: u8 = 5;
 /// 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).