From f64510d72bbb7dbfba9dfcf643bd670940a952e9 Mon Sep 17 00:00:00 2001 From: Krzysztof Drewniak Date: Thu, 16 Apr 2015 21:34:12 -0500 Subject: [PATCH] Suppress improper_ctypes warnings when compiling liballoc with external_features --- src/liballoc/heap.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/liballoc/heap.rs b/src/liballoc/heap.rs index 57baa811b9d47..4c7441b1d2a65 100644 --- a/src/liballoc/heap.rs +++ b/src/liballoc/heap.rs @@ -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);