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.
<*mut _>::is_null
<*const _>::is_null
1 parent c95ee77 commit f9afe0eCopy full SHA for f9afe0e
core/src/ptr/const_ptr.rs
@@ -30,6 +30,7 @@ impl<T: ?Sized> *const T {
30
/// ```
31
#[stable(feature = "rust1", since = "1.0.0")]
32
#[rustc_const_unstable(feature = "const_ptr_is_null", issue = "74939")]
33
+ #[rustc_diagnostic_item = "ptr_const_is_null"]
34
#[inline]
35
pub const fn is_null(self) -> bool {
36
core/src/ptr/mut_ptr.rs
@@ -29,6 +29,7 @@ impl<T: ?Sized> *mut T {
29
+ #[rustc_diagnostic_item = "ptr_is_null"]
0 commit comments