@@ -394,7 +394,8 @@ impl<T: ?Sized> NonNull { |
|
|
394 |
394 |
/// |
395 |
395 |
/// [the module documentation]: crate::ptr#safety |
396 |
396 |
#[stable(feature = "nonnull", since = "1.25.0")] |
397 |
|
-#[rustc_const_unstable(feature = "const_ptr_as_ref", issue = "91822")] |
|
397 |
+#[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs))] |
|
398 |
+#[rustc_const_stable(feature = "const_ptr_as_ref", since = "CURRENT_RUSTC_VERSION")] |
398 |
399 |
#[must_use] |
399 |
400 |
#[inline(always)] |
400 |
401 |
pub const unsafe fn as_mut<'a>(&mut self) -> &'a mut T { |