@@ -917,7 +917,7 @@ pub trait StreamExt: Stream {
917
917
/// fut.await;
918
918
/// # })
919
919
/// ```
920
- #[ cfg( has_atomic_cas ) ]
920
+ #[ cfg( not ( no_atomic_cas ) ) ]
921
921
#[ cfg( feature = "alloc" ) ]
922
922
fn for_each_concurrent < Fut , F > (
923
923
self ,
@@ -1140,7 +1140,7 @@ pub trait StreamExt: Stream {
1140
1140
///
1141
1141
/// This method is only available when the `std` or `alloc` feature of this
1142
1142
/// library is activated, and it is activated by default.
1143
- #[ cfg( has_atomic_cas ) ]
1143
+ #[ cfg( not ( no_atomic_cas ) ) ]
1144
1144
#[ cfg( feature = "alloc" ) ]
1145
1145
fn buffered ( self , n : usize ) -> Buffered < Self >
1146
1146
where
@@ -1185,7 +1185,7 @@ pub trait StreamExt: Stream {
1185
1185
/// assert_eq!(buffered.next().await, None);
1186
1186
/// # Ok::<(), i32>(()) }).unwrap();
1187
1187
/// ```
1188
- #[ cfg( has_atomic_cas ) ]
1188
+ #[ cfg( not ( no_atomic_cas ) ) ]
1189
1189
#[ cfg( feature = "alloc" ) ]
1190
1190
fn buffer_unordered ( self , n : usize ) -> BufferUnordered < Self >
1191
1191
where
@@ -1349,7 +1349,7 @@ pub trait StreamExt: Stream {
1349
1349
/// library is activated, and it is activated by default.
1350
1350
#[ cfg( feature = "sink" ) ]
1351
1351
#[ cfg_attr( docsrs, doc( cfg( feature = "sink" ) ) ) ]
1352
- #[ cfg( has_atomic_cas ) ]
1352
+ #[ cfg( not ( no_atomic_cas ) ) ]
1353
1353
#[ cfg( feature = "alloc" ) ]
1354
1354
fn split < Item > ( self ) -> ( SplitSink < Self , Item > , SplitStream < Self > )
1355
1355
where
0 commit comments