File tree 3 files changed +5
-0
lines changed
3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -409,6 +409,7 @@ pub enum Ordering {
409
409
note = "the `new` function is now preferred" ,
410
410
suggestion = "AtomicBool::new(false)"
411
411
) ]
412
+ #[ cfg_attr( not( bootstrap) , expect( interior_mutable_consts) ) ]
412
413
pub const ATOMIC_BOOL_INIT : AtomicBool = AtomicBool :: new ( false ) ;
413
414
414
415
#[ cfg( target_has_atomic_load_store = "8" ) ]
@@ -3288,6 +3289,7 @@ macro_rules! atomic_int_ptr_sized {
3288
3289
note = "the `new` function is now preferred" ,
3289
3290
suggestion = "AtomicIsize::new(0)" ,
3290
3291
) ]
3292
+ #[ cfg_attr( not( bootstrap) , expect( interior_mutable_consts) ) ]
3291
3293
pub const ATOMIC_ISIZE_INIT : AtomicIsize = AtomicIsize :: new( 0 ) ;
3292
3294
3293
3295
/// An [`AtomicUsize`] initialized to `0`.
@@ -3298,6 +3300,7 @@ macro_rules! atomic_int_ptr_sized {
3298
3300
note = "the `new` function is now preferred" ,
3299
3301
suggestion = "AtomicUsize::new(0)" ,
3300
3302
) ]
3303
+ #[ cfg_attr( not( bootstrap) , expect( interior_mutable_consts) ) ]
3301
3304
pub const ATOMIC_USIZE_INIT : AtomicUsize = AtomicUsize :: new( 0 ) ;
3302
3305
) * } ;
3303
3306
}
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ pub(crate) enum ExclusiveState {
74
74
note = "the `Once::new()` function is now preferred" ,
75
75
suggestion = "Once::new()"
76
76
) ]
77
+ #[ cfg_attr( not( bootstrap) , expect( interior_mutable_consts) ) ]
77
78
pub const ONCE_INIT : Once = Once :: new ( ) ;
78
79
79
80
impl Once {
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ pub macro thread_local_inner {
55
55
56
56
// Used to generate the `LocalKey` value for const-initialized thread locals.
57
57
( @key $t: ty, const $init: expr) => { {
58
+ #[ cfg_attr( not( bootstrap) , expect( interior_mutable_consts) ) ]
58
59
const __INIT: $t = $init;
59
60
60
61
unsafe {
You can’t perform that action at this time.
0 commit comments