Add diagnostic items for <*mut _>::is_null
and <*const _>::is_null
This commit is contained in:
parent
f798ada7ba
commit
1e377c16fe
3 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,7 @@ impl<T: ?Sized> *const T {
|
|||
/// ```
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_const_unstable(feature = "const_ptr_is_null", issue = "74939")]
|
||||
#[rustc_diagnostic_item = "ptr_const_is_null"]
|
||||
#[inline]
|
||||
pub const fn is_null(self) -> bool {
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue