-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Use ptr::{null, null_mut}
instead of 0 as *{const, mut}
#34456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
Thanks! @bors: r+ |
@bors r=aturon |
📌 Commit ceb4e3c has been approved by |
⌛ Testing commit ceb4e3c with merge dc0a71b... |
💔 Test failed - auto-mac-cross-ios-opt |
@@ -169,7 +169,7 @@ mod inner { | |||
tv_usec: 0, | |||
}; | |||
cvt(unsafe { | |||
libc::gettimeofday(&mut s, 0 as *mut _) | |||
libc::gettimeofday(&mut s, ptr::null_mut()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems that this file is missing an import of ptr
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be fixed.
Travis output:
|
Travis output:
|
Travis successfully compiled the code, so it should be good now. |
@bors: r=aturon |
📌 Commit 8fd087a has been approved by |
@bors rollup |
Use `ptr::{null, null_mut}` instead of `0 as *{const, mut}`
Fixed. |
☔ The latest upstream changes (presumably #33890) made this pull request unmergeable. Please resolve the merge conflicts. |
Rebased. |
@bors r=aturon |
📌 Commit 81e95c1 has been approved by |
Use `ptr::{null, null_mut}` instead of `0 as *{const, mut}`
No description provided.