Skip to content

Commit 75998b5

Browse files
committed
Rollup merge of rust-lang#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.
2 parents f46c4e1 + f64510d commit 75998b5

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)