@@ -89,7 +89,8 @@ impl<T: Sized> NonNull<T> {
89
89
/// For more details, see the equivalent method on a raw pointer, [`ptr::without_provenance_mut`].
90
90
///
91
91
/// This is a [Strict Provenance][crate::ptr#strict-provenance] API.
92
- #[ unstable( feature = "nonnull_provenance" , issue = "135243" ) ]
92
+ #[ stable( feature = "nonnull_provenance" , since = "CURRENT_RUSTC_VERSION" ) ]
93
+ #[ rustc_const_stable( feature = "nonnull_provenance" , since = "CURRENT_RUSTC_VERSION" ) ]
93
94
#[ must_use]
94
95
#[ inline]
95
96
pub const fn without_provenance ( addr : NonZero < usize > ) -> Self {
@@ -132,7 +133,7 @@ impl<T: Sized> NonNull<T> {
132
133
/// For more details, see the equivalent method on a raw pointer, [`ptr::with_exposed_provenance_mut`].
133
134
///
134
135
/// This is an [Exposed Provenance][crate::ptr#exposed-provenance] API.
135
- #[ unstable ( feature = "nonnull_provenance" , issue = "135243 " ) ]
136
+ #[ stable ( feature = "nonnull_provenance" , since = "CURRENT_RUSTC_VERSION " ) ]
136
137
#[ inline]
137
138
pub fn with_exposed_provenance ( addr : NonZero < usize > ) -> Self {
138
139
// SAFETY: we know `addr` is non-zero.
@@ -329,7 +330,7 @@ impl<T: ?Sized> NonNull<T> {
329
330
/// For more details, see the equivalent method on a raw pointer, [`pointer::expose_provenance`].
330
331
///
331
332
/// This is an [Exposed Provenance][crate::ptr#exposed-provenance] API.
332
- #[ unstable ( feature = "nonnull_provenance" , issue = "135243 " ) ]
333
+ #[ stable ( feature = "nonnull_provenance" , since = "CURRENT_RUSTC_VERSION " ) ]
333
334
pub fn expose_provenance ( self ) -> NonZero < usize > {
334
335
// SAFETY: The pointer is guaranteed by the type to be non-null,
335
336
// meaning that the address will be non-zero.
0 commit comments