about summary refs log tree commit diff
path: root/library/core/src
diff options
context:
space:
mode:
authorKivooeo <Kivooeo123@gmail.com>2025-08-15 16:19:19 +0000
committerKivooeo <Kivooeo123@gmail.com>2025-08-15 16:19:19 +0000
commit5ee2224daa83c7d4337e50488f732808046ba0bc (patch)
treef08313f098be14c8857f5d86f000a1daf89c69bf /library/core/src
parentc018ae5389c49cc4bcb8343d80dd8e7323325410 (diff)
downloadrust-5ee2224daa83c7d4337e50488f732808046ba0bc.tar.gz
rust-5ee2224daa83c7d4337e50488f732808046ba0bc.zip
stabilize const exposed provenance
Diffstat (limited to 'library/core/src')
-rw-r--r--library/core/src/ptr/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/ptr/mod.rs b/library/core/src/ptr/mod.rs
index b2607e45324..be26e714e67 100644
--- a/library/core/src/ptr/mod.rs
+++ b/library/core/src/ptr/mod.rs
@@ -974,7 +974,7 @@ pub const fn dangling_mut<T>() -> *mut T {
 #[must_use]
 #[inline(always)]
 #[stable(feature = "exposed_provenance", since = "1.84.0")]
-#[rustc_const_unstable(feature = "const_exposed_provenance", issue = "144538")]
+#[rustc_const_stable(feature = "const_exposed_provenance", since = "CURRENT_RUSTC_VERSION")]
 #[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
 #[allow(fuzzy_provenance_casts)] // this *is* the explicit provenance API one should use instead
 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 {
 #[must_use]
 #[inline(always)]
 #[stable(feature = "exposed_provenance", since = "1.84.0")]
-#[rustc_const_unstable(feature = "const_exposed_provenance", issue = "144538")]
+#[rustc_const_stable(feature = "const_exposed_provenance", since = "CURRENT_RUSTC_VERSION")]
 #[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
 #[allow(fuzzy_provenance_casts)] // this *is* the explicit provenance API one should use instead
 pub const fn with_exposed_provenance_mut<T>(addr: usize) -> *mut T {