From 1523298bc73b2ef9141163daae1f71d5908ade10 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 21 May 2012 18:35:35 -0700 Subject: [PATCH] core: Update vec_repr to include the box header --- src/libcore/vec.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs index fdc8b1ed248..a743cbc5576 100644 --- a/src/libcore/vec.rs +++ b/src/libcore/vec.rs @@ -1162,7 +1162,12 @@ impl extensions for [T] { mod unsafe { // FIXME: This should have crate visibility (#1893 blocks that) #[doc = "The internal representation of a vector"] - type vec_repr = {mut fill: uint, mut alloc: uint, data: u8}; + type vec_repr = { + box_header: (uint, uint, uint, uint), + mut fill: uint, + mut alloc: uint, + data: u8 + }; #[doc = " Constructs a vector from an unsafe pointer to a buffer