Skip to content

Commit 5ee2224

Browse files
committed
stabilize const exposed provenance
1 parent c018ae5 commit 5ee2224

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/ptr/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ pub const fn dangling_mut<T>() -> *mut T {
974974
#[must_use]
975975
#[inline(always)]
976976
#[stable(feature = "exposed_provenance", since = "1.84.0")]
977-
#[rustc_const_unstable(feature = "const_exposed_provenance", issue = "144538")]
977+
#[rustc_const_stable(feature = "const_exposed_provenance", since = "CURRENT_RUSTC_VERSION")]
978978
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
979979
#[allow(fuzzy_provenance_casts)] // this *is* the explicit provenance API one should use instead
980980
pub const fn with_exposed_provenance<T>(addr: usize) -> *const T {
@@ -1015,7 +1015,7 @@ pub const fn with_exposed_provenance<T>(addr: usize) -> *const T {
10151015
#[must_use]
10161016
#[inline(always)]
10171017
#[stable(feature = "exposed_provenance", since = "1.84.0")]
1018-
#[rustc_const_unstable(feature = "const_exposed_provenance", issue = "144538")]
1018+
#[rustc_const_stable(feature = "const_exposed_provenance", since = "CURRENT_RUSTC_VERSION")]
10191019
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
10201020
#[allow(fuzzy_provenance_casts)] // this *is* the explicit provenance API one should use instead
10211021
pub const fn with_exposed_provenance_mut<T>(addr: usize) -> *mut T {

0 commit comments

Comments
 (0)