Skip to content

Commit f9c96d7

Browse files
committed
Add FIXME comments for Void::null_mut usage
1 parent 93a9ad4 commit f9c96d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/liballoc_system/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ mod platform {
309309
let mut out = ptr::null_mut();
310310
let ret = libc::posix_memalign(&mut out, layout.align(), layout.size());
311311
if ret != 0 {
312+
// FIXME: use Void::null_mut https://github.com/rust-lang/rust/issues/49659
312313
0 as *mut Void
313314
} else {
314315
out as *mut Void

0 commit comments

Comments
 (0)