Skip to content

Commit

Permalink
Add FIXME comments for Void::null_mut usage
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Apr 12, 2018
1 parent 93a9ad4 commit f9c96d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/liballoc_system/lib.rs
Expand Up @@ -309,6 +309,7 @@ mod platform {
let mut out = ptr::null_mut();
let ret = libc::posix_memalign(&mut out, layout.align(), layout.size());
if ret != 0 {
// FIXME: use Void::null_mut https://github.com/rust-lang/rust/issues/49659
0 as *mut Void
} else {
out as *mut Void
Expand Down

0 comments on commit f9c96d7

Please sign in to comment.