Export VecUnboxedRepr from vec so a test case can use it
This commit is contained in:
@@ -1671,6 +1671,13 @@ pub unsafe fn from_buf<T>(ptr: *T, elts: uint) -> ~[T] {
|
||||
raw::from_buf_raw(ptr, elts)
|
||||
}
|
||||
|
||||
/// The internal 'unboxed' representation of a vector
|
||||
pub struct UnboxedVecRepr {
|
||||
mut fill: uint,
|
||||
mut alloc: uint,
|
||||
data: u8
|
||||
}
|
||||
|
||||
/// Unsafe operations
|
||||
mod raw {
|
||||
|
||||
@@ -1680,13 +1687,6 @@ mod raw {
|
||||
unboxed: UnboxedVecRepr
|
||||
}
|
||||
|
||||
/// The internal 'unboxed' representation of a vector
|
||||
pub struct UnboxedVecRepr {
|
||||
mut fill: uint,
|
||||
mut alloc: uint,
|
||||
data: u8
|
||||
}
|
||||
|
||||
pub type SliceRepr = {
|
||||
mut data: *u8,
|
||||
mut len: uint
|
||||
|
||||
Reference in New Issue
Block a user