diff options
| author | Urgau <urgau@numericable.fr> | 2023-05-17 16:49:18 +0200 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2023-07-03 18:52:23 +0200 |
| commit | 1e377c16fe93b893056bb1d661e16453bd2f7d24 (patch) | |
| tree | f5835a587fe294d32bd9bfa1e76a93fca2d99b27 /library/core/src/ptr | |
| parent | f798ada7babac06d4611b0b3a6079d8399ab58ab (diff) | |
| download | rust-1e377c16fe93b893056bb1d661e16453bd2f7d24.tar.gz rust-1e377c16fe93b893056bb1d661e16453bd2f7d24.zip | |
Add diagnostic items for `<*mut _>::is_null` and `<*const _>::is_null`
Diffstat (limited to 'library/core/src/ptr')
| -rw-r--r-- | library/core/src/ptr/const_ptr.rs | 1 | ||||
| -rw-r--r-- | library/core/src/ptr/mut_ptr.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/library/core/src/ptr/const_ptr.rs b/library/core/src/ptr/const_ptr.rs index 926189a17b2..74046a9c7c3 100644 --- a/library/core/src/ptr/const_ptr.rs +++ b/library/core/src/ptr/const_ptr.rs @@ -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] diff --git a/library/core/src/ptr/mut_ptr.rs b/library/core/src/ptr/mut_ptr.rs index c6f43857887..e7f27439540 100644 --- a/library/core/src/ptr/mut_ptr.rs +++ b/library/core/src/ptr/mut_ptr.rs @@ -29,6 +29,7 @@ impl<T: ?Sized> *mut T { /// ``` #[stable(feature = "rust1", since = "1.0.0")] #[rustc_const_unstable(feature = "const_ptr_is_null", issue = "74939")] + #[rustc_diagnostic_item = "ptr_is_null"] #[inline] pub const fn is_null(self) -> bool { #[inline] |
