@@ -276,7 +276,7 @@ impl<T: ?Sized> *mut T { |
|
|
276 |
276 |
/// } |
277 |
277 |
/// ``` |
278 |
278 |
#[stable(feature = "ptr_as_ref", since = "1.9.0")] |
279 |
|
-#[rustc_const_unstable(feature = "const_ptr_as_ref", issue = "91822")] |
|
279 |
+#[rustc_const_unstable(feature = "const_ptr_is_null", issue = "74939")] |
280 |
280 |
#[inline] |
281 |
281 |
pub const unsafe fn as_ref<'a>(self) -> Option<&'a T> { |
282 |
282 |
// SAFETY: the caller must guarantee that `self` is valid for a |
@@ -595,7 +595,7 @@ impl<T: ?Sized> *mut T { |
|
|
595 |
595 |
/// println!("{s:?}"); // It'll print: "[4, 2, 3]". |
596 |
596 |
/// ``` |
597 |
597 |
#[stable(feature = "ptr_as_ref", since = "1.9.0")] |
598 |
|
-#[rustc_const_unstable(feature = "const_ptr_as_ref", issue = "91822")] |
|
598 |
+#[rustc_const_unstable(feature = "const_ptr_is_null", issue = "74939")] |
599 |
599 |
#[inline] |
600 |
600 |
pub const unsafe fn as_mut<'a>(self) -> Option<&'a mut T> { |
601 |
601 |
// SAFETY: the caller must guarantee that `self` is be valid for |