mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 01:42:54 +03:00
Suppress improper_ctypes warnings when compiling liballoc with external_features
This commit is contained in:
@@ -133,6 +133,7 @@ unsafe fn exchange_free(ptr: *mut u8, old_size: usize, align: usize) {
|
||||
|
||||
#[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);
|
||||
|
||||
Reference in New Issue
Block a user