@@ -89,7 +89,8 @@ impl<T: Sized> NonNull<T> {
8989 /// For more details, see the equivalent method on a raw pointer, [`ptr::without_provenance_mut`].
9090 ///
9191 /// 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" ) ]
9394 #[ must_use]
9495 #[ inline]
9596 pub const fn without_provenance ( addr : NonZero < usize > ) -> Self {
@@ -132,7 +133,7 @@ impl<T: Sized> NonNull<T> {
132133 /// For more details, see the equivalent method on a raw pointer, [`ptr::with_exposed_provenance_mut`].
133134 ///
134135 /// 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 " ) ]
136137 #[ inline]
137138 pub fn with_exposed_provenance ( addr : NonZero < usize > ) -> Self {
138139 // SAFETY: we know `addr` is non-zero.
@@ -329,7 +330,7 @@ impl<T: ?Sized> NonNull<T> {
329330 /// For more details, see the equivalent method on a raw pointer, [`pointer::expose_provenance`].
330331 ///
331332 /// 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 " ) ]
333334 pub fn expose_provenance ( self ) -> NonZero < usize > {
334335 // SAFETY: The pointer is guaranteed by the type to be non-null,
335336 // meaning that the address will be non-zero.
0 commit comments