Rollup merge of #24514 - krzysz00:no-warnings-in-liballoc, r=alexcrichton

When `liballoc` is compiled with `--cfg feature=\"external_features\"`, several `improper_ctypes` warnings are generated. Since these warnings are harmless, I have added a directive to suppress them.
This commit is contained in:
Steve Klabnik 2015-04-20 21:15:52 -04:00
commit 75998b569a

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);