From 162ec5da5daf4fb62cfd78f666513aabb1122214 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Wed, 10 Jun 2015 01:43:44 +0530 Subject: [PATCH] Audit and reduce unstable usage in script Reasons behind existing unstable features: alloc / OIBIT : For deque (which was just copied from rust's source) collections: - `[T].tail()` - `to_lowercase()` core: - `FnBox` - `intrinsics::breakpoint()` exit_status: for setting exit status path_ext: for `is_dir` and `exists()` (can be done in other ways) step_by/step_trait std_misc: - Thunk - DefaultState and other hasher stuff zero_one: `num::One` --- components/util/deque/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/util/deque/mod.rs b/components/util/deque/mod.rs index fc79d9f76ee..bee1d97b296 100644 --- a/components/util/deque/mod.rs +++ b/components/util/deque/mod.rs @@ -50,8 +50,8 @@ pub use self::Stolen::{Empty, Abort, Data}; -use alloc::arc::Arc; -use alloc::heap::{allocate, deallocate}; +use std::sync::Arc; +use std::rt::heap::{allocate, deallocate}; use std::marker; use std::mem::{forget, min_align_of, size_of, transmute}; use std::ptr;