Skip to content

Commit 2a9bb56

Browse files
authored
Rollup merge of #145462 - Kivooeo:stabilize-const_exposed_provenance, r=RalfJung
Stabilize `const_exposed_provenance` feature This closes [tracking issue](#144538) and stabilises `fn with_exposed_provenance` and `fn with_exposed_provenance_mut` in const
2 parents 56e9a67 + 5ee2224 commit 2a9bb56

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)