about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-06-06 10:27:49 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-06-11 15:02:17 -0700
commit3316b1eb7c3eb520896af489dd45c4d17190d0a8 (patch)
treec94cde854a882cad33d8ec7fe0067b43b5cb96d7 /src/liballoc
parentf9260d41d6e37653bf71b08a041be0310098716a (diff)
downloadrust-3316b1eb7c3eb520896af489dd45c4d17190d0a8.tar.gz
rust-3316b1eb7c3eb520896af489dd45c4d17190d0a8.zip
rustc: Remove ~[T] from the language
The following features have been removed

* box [a, b, c]
* ~[a, b, c]
* box [a, ..N]
* ~[a, ..N]
* ~[T] (as a type)
* deprecated_owned_vector lint

All users of ~[T] should move to using Vec<T> instead.
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/heap.rs25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/liballoc/heap.rs b/src/liballoc/heap.rs
index ba3180cefd6..b03486a6c22 100644
--- a/src/liballoc/heap.rs
+++ b/src/liballoc/heap.rs
@@ -155,24 +155,6 @@ unsafe fn closure_exchange_malloc(drop_glue: fn(*mut u8), size: uint, align: uin
     alloc as *mut u8
 }
 
-// hack for libcore
-#[no_mangle]
-#[doc(hidden)]
-#[deprecated]
-#[cfg(not(test))]
-pub unsafe extern "C" fn rust_allocate(size: uint, align: uint) -> *mut u8 {
-    allocate(size, align)
-}
-
-// hack for libcore
-#[no_mangle]
-#[doc(hidden)]
-#[deprecated]
-#[cfg(not(test))]
-pub unsafe extern "C" fn rust_deallocate(ptr: *mut u8, size: uint, align: uint) {
-    deallocate(ptr, size, align)
-}
-
 #[cfg(test)]
 mod bench {
     extern crate test;
@@ -184,11 +166,4 @@ mod bench {
             box 10
         })
     }
-
-    #[bench]
-    fn alloc_owned_big(b: &mut Bencher) {
-        b.iter(|| {
-            box [10, ..1000]
-        })
-    }
 }