Skip to content

Commit 1523298

Browse files
committed
core: Update vec_repr to include the box header
1 parent 09a1b94 commit 1523298

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/libcore/vec.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,12 @@ impl extensions<T> for [T] {
11621162
mod unsafe {
11631163
// FIXME: This should have crate visibility (#1893 blocks that)
11641164
#[doc = "The internal representation of a vector"]
1165-
type vec_repr = {mut fill: uint, mut alloc: uint, data: u8};
1165+
type vec_repr = {
1166+
box_header: (uint, uint, uint, uint),
1167+
mut fill: uint,
1168+
mut alloc: uint,
1169+
data: u8
1170+
};
11661171

11671172
#[doc = "
11681173
Constructs a vector from an unsafe pointer to a buffer

0 commit comments

Comments
 (0)