diff options
| author | Mark Simulacrum <mark.simulacrum@gmail.com> | 2016-12-21 14:29:34 -0700 |
|---|---|---|
| committer | Mark Simulacrum <mark.simulacrum@gmail.com> | 2016-12-26 17:13:51 -0700 |
| commit | ca115dd083a1fe1d2b4892c5e50e49eb83ff1f3c (patch) | |
| tree | 981c74c6684d85fc57c81c6ec8a994085c7c1ad6 /src/liballoc | |
| parent | ce4461f4cfa09045e5c03f45e343b01bc5dd22e4 (diff) | |
| download | rust-ca115dd083a1fe1d2b4892c5e50e49eb83ff1f3c.tar.gz rust-ca115dd083a1fe1d2b4892c5e50e49eb83ff1f3c.zip | |
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.
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/heap.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |
