@@ -94,8 +94,8 @@ impl<T: Sized> NonNull<T> {
94
94
/// For more details, see the equivalent method on a raw pointer, [`ptr::without_provenance_mut`].
95
95
///
96
96
/// 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 " ) ]
99
99
#[ must_use]
100
100
#[ inline]
101
101
pub const fn without_provenance ( addr : NonZero < usize > ) -> Self {
@@ -138,7 +138,7 @@ impl<T: Sized> NonNull<T> {
138
138
/// For more details, see the equivalent method on a raw pointer, [`ptr::with_exposed_provenance_mut`].
139
139
///
140
140
/// 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 " ) ]
142
142
#[ inline]
143
143
pub fn with_exposed_provenance ( addr : NonZero < usize > ) -> Self {
144
144
// SAFETY: we know `addr` is non-zero.
@@ -269,17 +269,17 @@ impl<T: PointeeSized> NonNull<T> {
269
269
}
270
270
271
271
/// 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 " ) ]
274
274
#[ inline]
275
275
pub const fn from_ref ( r : & T ) -> Self {
276
276
// SAFETY: A reference cannot be null.
277
277
unsafe { NonNull { pointer : r as * const T } }
278
278
}
279
279
280
280
/// 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 " ) ]
283
283
#[ inline]
284
284
pub const fn from_mut ( r : & mut T ) -> Self {
285
285
// SAFETY: A mutable reference cannot be null.
@@ -335,7 +335,7 @@ impl<T: PointeeSized> NonNull<T> {
335
335
/// For more details, see the equivalent method on a raw pointer, [`pointer::expose_provenance`].
336
336
///
337
337
/// 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 " ) ]
339
339
pub fn expose_provenance ( self ) -> NonZero < usize > {
340
340
// SAFETY: The pointer is guaranteed by the type to be non-null,
341
341
// meaning that the address will be non-zero.
0 commit comments