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.
This commit is contained in:
Mark Simulacrum
2016-12-21 14:29:34 -07:00
parent ce4461f4cf
commit ca115dd083
4 changed files with 34 additions and 66 deletions

View File

@@ -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) {