Suppress improper_ctypes warnings when compiling liballoc with external_features

This commit is contained in:
Krzysztof Drewniak 2015-04-16 21:34:12 -05:00
parent 1014ac44f6
commit f64510d72b

View File

@ -133,6 +133,7 @@ const MIN_ALIGN: usize = 16;
#[cfg(feature = "external_funcs")]
mod imp {
#[allow(improper_ctypes)]
extern {
fn rust_allocate(size: usize, align: usize) -> *mut u8;
fn rust_deallocate(ptr: *mut u8, old_size: usize, align: usize);