diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-11-05 08:25:32 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-11-06 20:24:36 -0800 |
| commit | 4b770446b419e06d020c04ceb6ac7b8a63d2844d (patch) | |
| tree | e080c40d7bf2f36b2a0af310efea37efe2e5ff7e /src/libstd/vec.rs | |
| parent | 22eb11c09ba8939ab06351eb5d14b355f632e197 (diff) | |
| download | rust-4b770446b419e06d020c04ceb6ac7b8a63d2844d.tar.gz rust-4b770446b419e06d020c04ceb6ac7b8a63d2844d.zip | |
Register new snapshots
Diffstat (limited to 'src/libstd/vec.rs')
| -rw-r--r-- | src/libstd/vec.rs | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/libstd/vec.rs b/src/libstd/vec.rs index c9d55735015..194a72bad6f 100644 --- a/src/libstd/vec.rs +++ b/src/libstd/vec.rs @@ -121,19 +121,11 @@ use mem::size_of; use uint; use unstable::finally::Finally; use unstable::intrinsics; -use unstable::intrinsics::{get_tydesc}; +use unstable::intrinsics::{get_tydesc, owns_managed}; use unstable::raw::{Box, Repr, Slice, Vec}; use vec; use util; -#[cfg(not(stage0))] -use unstable::intrinsics::owns_managed; - -#[cfg(stage0)] -unsafe fn owns_managed<T>() -> bool { - intrinsics::contains_managed::<T>() -} - /** * Creates and initializes an owned vector. * @@ -2066,13 +2058,8 @@ pub mod raw { use unstable::intrinsics; use vec::{with_capacity, ImmutableVector, MutableVector}; use unstable::raw::{Box, Vec, Slice}; - - #[cfg(not(stage0))] use unstable::intrinsics::owns_managed; - #[cfg(stage0)] - use vec::owns_managed; - /** * Sets the length of a vector * |
