From 3316b1eb7c3eb520896af489dd45c4d17190d0a8 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 6 Jun 2014 10:27:49 -0700 Subject: 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 instead. --- src/liballoc/heap.rs | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'src/liballoc') 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] - }) - } } -- cgit 1.4.1-3-g733a5