1
- #![ cfg_attr( feature = "nightly" , feature( atomic_min_max , atomic_mut_ptr, no_more_cas ) ) ]
1
+ #![ cfg_attr( feature = "nightly" , feature( atomic_mut_ptr) ) ]
2
2
use std:: sync:: atomic:: { self , Ordering } ;
3
3
use std:: hash:: Hash ;
4
4
use std:: fmt:: { Debug , Display } ;
@@ -64,13 +64,10 @@ pub trait AtomicInt : Default + Send + Sync + RefUnwindSafe + UnwindSafe {
64
64
ordering : Ordering
65
65
) -> <Self as AtomicInt >:: Prim ;
66
66
67
- #[ cfg( feature="nightly" ) ]
68
67
fn fetch_min ( & self , val : <Self as AtomicInt >:: Prim , order : Ordering ) -> <Self as AtomicInt >:: Prim ;
69
68
70
- #[ cfg( feature="nightly" ) ]
71
69
fn fetch_max ( & self , val : <Self as AtomicInt >:: Prim , order : Ordering ) -> <Self as AtomicInt >:: Prim ;
72
70
73
- #[ cfg( feature="nightly" ) ]
74
71
fn fetch_update < F > (
75
72
& self ,
76
73
f : F ,
@@ -173,7 +170,6 @@ macro_rules! impl_atomic_int {
173
170
self . fetch_xor( new, ordering)
174
171
}
175
172
176
- #[ cfg( feature = "nightly" ) ]
177
173
fn fetch_min(
178
174
& self ,
179
175
val: $prim,
@@ -182,7 +178,6 @@ macro_rules! impl_atomic_int {
182
178
self . fetch_min( val, ordering)
183
179
}
184
180
185
- #[ cfg( feature = "nightly" ) ]
186
181
fn fetch_max(
187
182
& self ,
188
183
val: $prim,
@@ -191,7 +186,6 @@ macro_rules! impl_atomic_int {
191
186
self . fetch_max( val, ordering)
192
187
}
193
188
194
- #[ cfg( feature = "nightly" ) ]
195
189
fn fetch_update<F >(
196
190
& self ,
197
191
f: F ,
0 commit comments