Audit and reduce unstable usage in script

Reasons behind existing unstable features:

alloc:

 - `Rc.make_unique()`
 - `into_raw` / `from_raw` (naming). All over the bindings code.

collections:

 - `Vec.push_all()`
 - `from_str`
   - can be replaced by `.to_owned()`
 - `from_raw_buf`
   - could be done directly

core:

  - `nonzero`
  - `UnsafeCell` (`as_unsafe_cell`)
  - `Zeroable`
  - `Peekable.is_empty`

std_misc:

  - Handle stuff
This commit is contained in:
Manish Goregaokar 2015-06-10 01:20:03 +05:30
parent af364a412e
commit 968b335f9b
4 changed files with 3 additions and 5 deletions

View file

@ -12,7 +12,7 @@ use js::jsapi::{JSContext, JSObject};
use js::jsfriendapi::bindgen::{JS_NewUint8ClampedArray, JS_GetUint8ClampedArrayData};
use libc::uint8_t;
use std::vec::Vec;
use collections::slice;
use std::slice;
use std::ptr;
#[dom_struct]