提交 1523298b 编写于 作者: B Brian Anderson

core: Update vec_repr to include the box header

上级 09a1b949
...@@ -1162,7 +1162,12 @@ fn filter_map<U: copy>(f: fn(T) -> option<U>) -> [U] { ...@@ -1162,7 +1162,12 @@ fn filter_map<U: copy>(f: fn(T) -> option<U>) -> [U] {
mod unsafe { mod unsafe {
// FIXME: This should have crate visibility (#1893 blocks that) // FIXME: This should have crate visibility (#1893 blocks that)
#[doc = "The internal representation of a vector"] #[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 = " #[doc = "
Constructs a vector from an unsafe pointer to a buffer Constructs a vector from an unsafe pointer to a buffer
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册