@@ -469,7 +469,8 @@ impl AtomicBool {
469
469
/// [valid]: crate::ptr#safety
470
470
/// [Memory model for atomic accesses]: self#memory-model-for-atomic-accesses
471
471
#[ stable( feature = "atomic_from_ptr" , since = "1.75.0" ) ]
472
- #[ rustc_const_unstable( feature = "const_atomic_from_ptr" , issue = "108652" ) ]
472
+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
473
+ #[ rustc_const_stable( feature = "const_atomic_from_ptr" , since = "CURRENT_RUSTC_VERSION" ) ]
473
474
pub const unsafe fn from_ptr < ' a > ( ptr : * mut bool ) -> & ' a AtomicBool {
474
475
// SAFETY: guaranteed by the caller
475
476
unsafe { & * ptr. cast ( ) }
@@ -1264,7 +1265,8 @@ impl<T> AtomicPtr<T> {
1264
1265
/// [valid]: crate::ptr#safety
1265
1266
/// [Memory model for atomic accesses]: self#memory-model-for-atomic-accesses
1266
1267
#[ stable( feature = "atomic_from_ptr" , since = "1.75.0" ) ]
1267
- #[ rustc_const_unstable( feature = "const_atomic_from_ptr" , issue = "108652" ) ]
1268
+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
1269
+ #[ rustc_const_stable( feature = "const_atomic_from_ptr" , since = "CURRENT_RUSTC_VERSION" ) ]
1268
1270
pub const unsafe fn from_ptr < ' a > ( ptr : * mut * mut T ) -> & ' a AtomicPtr < T > {
1269
1271
// SAFETY: guaranteed by the caller
1270
1272
unsafe { & * ptr. cast ( ) }
@@ -2262,7 +2264,8 @@ macro_rules! atomic_int {
2262
2264
/// [valid]: crate::ptr#safety
2263
2265
/// [Memory model for atomic accesses]: self#memory-model-for-atomic-accesses
2264
2266
#[ stable( feature = "atomic_from_ptr" , since = "1.75.0" ) ]
2265
- #[ rustc_const_unstable( feature = "const_atomic_from_ptr" , issue = "108652" ) ]
2267
+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
2268
+ #[ rustc_const_stable( feature = "const_atomic_from_ptr" , since = "CURRENT_RUSTC_VERSION" ) ]
2266
2269
pub const unsafe fn from_ptr<' a>( ptr: * mut $int_type) -> & ' a $atomic_type {
2267
2270
// SAFETY: guaranteed by the caller
2268
2271
unsafe { & * ptr. cast( ) }
0 commit comments