From ca115dd083a1fe1d2b4892c5e50e49eb83ff1f3c Mon Sep 17 00:00:00 2001 From: Mark Simulacrum Date: Wed, 21 Dec 2016 14:29:34 -0700 Subject: Remove extra lang item, exchange_free; use box_free instead. Trans used to insert code equivalent to box_free in a wrapper around exchange_free, and that code is now removed from trans. --- src/liballoc/heap.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/liballoc') diff --git a/src/liballoc/heap.rs b/src/liballoc/heap.rs index a1e32636980..81ed4be7763 100644 --- a/src/liballoc/heap.rs +++ b/src/liballoc/heap.rs @@ -144,6 +144,7 @@ unsafe fn exchange_malloc(size: usize, align: usize) -> *mut u8 { } #[cfg(not(test))] +#[cfg(stage0)] #[lang = "exchange_free"] #[inline] unsafe fn exchange_free(ptr: *mut u8, old_size: usize, align: usize) { -- cgit 1.4.1-3-g733a5