core: Update vec_repr to include the box header

This commit is contained in:
Brian Anderson 2012-05-21 18:35:35 -07:00
parent 09a1b94907
commit 1523298bc7

View File

@ -1162,7 +1162,12 @@ impl extensions<T> 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