We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93a9ad4 commit f9c96d7Copy full SHA for f9c96d7
src/liballoc_system/lib.rs
@@ -309,6 +309,7 @@ mod platform {
309
let mut out = ptr::null_mut();
310
let ret = libc::posix_memalign(&mut out, layout.align(), layout.size());
311
if ret != 0 {
312
+ // FIXME: use Void::null_mut https://github.com/rust-lang/rust/issues/49659
313
0 as *mut Void
314
} else {
315
out as *mut Void
0 commit comments