@@ -94,8 +94,8 @@ impl<T: Sized> NonNull<T> {
9494 /// For more details, see the equivalent method on a raw pointer, [`ptr::without_provenance_mut`].
9595 ///
9696 /// This is a [Strict Provenance][crate::ptr#strict-provenance] API.
97- #[ stable( feature = "nonnull_provenance" , since = "CURRENT_RUSTC_VERSION " ) ]
98- #[ rustc_const_stable( feature = "nonnull_provenance" , since = "CURRENT_RUSTC_VERSION " ) ]
97+ #[ stable( feature = "nonnull_provenance" , since = "1.89.0 " ) ]
98+ #[ rustc_const_stable( feature = "nonnull_provenance" , since = "1.89.0 " ) ]
9999 #[ must_use]
100100 #[ inline]
101101 pub const fn without_provenance ( addr : NonZero < usize > ) -> Self {
@@ -138,7 +138,7 @@ impl<T: Sized> NonNull<T> {
138138 /// For more details, see the equivalent method on a raw pointer, [`ptr::with_exposed_provenance_mut`].
139139 ///
140140 /// This is an [Exposed Provenance][crate::ptr#exposed-provenance] API.
141- #[ stable( feature = "nonnull_provenance" , since = "CURRENT_RUSTC_VERSION " ) ]
141+ #[ stable( feature = "nonnull_provenance" , since = "1.89.0 " ) ]
142142 #[ inline]
143143 pub fn with_exposed_provenance ( addr : NonZero < usize > ) -> Self {
144144 // SAFETY: we know `addr` is non-zero.
@@ -269,17 +269,17 @@ impl<T: PointeeSized> NonNull<T> {
269269 }
270270
271271 /// Converts a reference to a `NonNull` pointer.
272- #[ stable( feature = "non_null_from_ref" , since = "CURRENT_RUSTC_VERSION " ) ]
273- #[ rustc_const_stable( feature = "non_null_from_ref" , since = "CURRENT_RUSTC_VERSION " ) ]
272+ #[ stable( feature = "non_null_from_ref" , since = "1.89.0 " ) ]
273+ #[ rustc_const_stable( feature = "non_null_from_ref" , since = "1.89.0 " ) ]
274274 #[ inline]
275275 pub const fn from_ref ( r : & T ) -> Self {
276276 // SAFETY: A reference cannot be null.
277277 unsafe { NonNull { pointer : r as * const T } }
278278 }
279279
280280 /// Converts a mutable reference to a `NonNull` pointer.
281- #[ stable( feature = "non_null_from_ref" , since = "CURRENT_RUSTC_VERSION " ) ]
282- #[ rustc_const_stable( feature = "non_null_from_ref" , since = "CURRENT_RUSTC_VERSION " ) ]
281+ #[ stable( feature = "non_null_from_ref" , since = "1.89.0 " ) ]
282+ #[ rustc_const_stable( feature = "non_null_from_ref" , since = "1.89.0 " ) ]
283283 #[ inline]
284284 pub const fn from_mut ( r : & mut T ) -> Self {
285285 // SAFETY: A mutable reference cannot be null.
@@ -335,7 +335,7 @@ impl<T: PointeeSized> NonNull<T> {
335335 /// For more details, see the equivalent method on a raw pointer, [`pointer::expose_provenance`].
336336 ///
337337 /// This is an [Exposed Provenance][crate::ptr#exposed-provenance] API.
338- #[ stable( feature = "nonnull_provenance" , since = "CURRENT_RUSTC_VERSION " ) ]
338+ #[ stable( feature = "nonnull_provenance" , since = "1.89.0 " ) ]
339339 pub fn expose_provenance ( self ) -> NonZero < usize > {
340340 // SAFETY: The pointer is guaranteed by the type to be non-null,
341341 // meaning that the address will be non-zero.
0 commit comments