Skip to content

Commit f64510d

Browse files
committed
Suppress improper_ctypes warnings when compiling liballoc with external_features
1 parent 1014ac4 commit f64510d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/liballoc/heap.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ const MIN_ALIGN: usize = 16;
133133

134134
#[cfg(feature = "external_funcs")]
135135
mod imp {
136+
#[allow(improper_ctypes)]
136137
extern {
137138
fn rust_allocate(size: usize, align: usize) -> *mut u8;
138139
fn rust_deallocate(ptr: *mut u8, old_size: usize, align: usize);

0 commit comments

Comments
 (0)