diff options
Diffstat (limited to 'src/libstd/unstable/raw.rs')
| -rw-r--r-- | src/libstd/unstable/raw.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libstd/unstable/raw.rs b/src/libstd/unstable/raw.rs index 63208b3f2d7..8f5f8ea806f 100644 --- a/src/libstd/unstable/raw.rs +++ b/src/libstd/unstable/raw.rs @@ -9,9 +9,11 @@ // except according to those terms. use cast; +#[cfg(stage0)] use unstable::intrinsics::TyDesc; /// The representation of a Rust managed box +#[cfg(stage0)] pub struct Box<T> { ref_count: uint, type_desc: *TyDesc, @@ -20,6 +22,16 @@ pub struct Box<T> { data: T } +/// The representation of a Rust managed box +#[cfg(not(stage0))] +pub struct Box<T> { + ref_count: uint, + drop_glue: fn(ptr: *mut u8), + prev: *mut Box<T>, + next: *mut Box<T>, + data: T +} + /// The representation of a Rust vector pub struct Vec<T> { fill: uint, |
