@@ -75,10 +75,7 @@ pub use futures_util::pin_mut;
7575#[ cfg( feature = "async-await" ) ]
7676pub use futures_util:: { pending, poll} ; // Async-await
7777
78- #[ cfg_attr(
79- feature = "cfg-target-has-atomic" ,
80- cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
81- ) ]
78+ #[ cfg_attr( feature = "cfg-target-has-atomic" , cfg( target_has_atomic = "ptr" ) ) ]
8279#[ cfg( feature = "alloc" ) ]
8380pub mod channel {
8481 //! Cross-task communication.
@@ -243,10 +240,7 @@ pub mod future {
243240 select_all, SelectAll ,
244241 } ;
245242
246- #[ cfg_attr(
247- feature = "cfg-target-has-atomic" ,
248- cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
249- ) ]
243+ #[ cfg_attr( feature = "cfg-target-has-atomic" , cfg( target_has_atomic = "ptr" ) ) ]
250244 #[ cfg( feature = "alloc" ) ]
251245 pub use futures_util:: future:: {
252246 abortable, Abortable , AbortHandle , AbortRegistration , Aborted ,
@@ -319,10 +313,7 @@ pub mod io {
319313 } ;
320314}
321315
322- #[ cfg_attr(
323- feature = "cfg-target-has-atomic" ,
324- cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
325- ) ]
316+ #[ cfg_attr( feature = "cfg-target-has-atomic" , cfg( target_has_atomic = "ptr" ) ) ]
326317#[ cfg( feature = "alloc" ) ]
327318pub mod lock {
328319 //! Futures-powered synchronization primitives.
@@ -438,10 +429,7 @@ pub mod stream {
438429 Chunks ,
439430 } ;
440431
441- #[ cfg_attr(
442- feature = "cfg-target-has-atomic" ,
443- cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
444- ) ]
432+ #[ cfg_attr( feature = "cfg-target-has-atomic" , cfg( target_has_atomic = "ptr" ) ) ]
445433 #[ cfg( feature = "alloc" ) ]
446434 pub use futures_util:: stream:: {
447435 FuturesOrdered ,
@@ -469,10 +457,7 @@ pub mod stream {
469457 IntoStream ,
470458 } ;
471459
472- #[ cfg_attr(
473- feature = "cfg-target-has-atomic" ,
474- cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
475- ) ]
460+ #[ cfg_attr( feature = "cfg-target-has-atomic" , cfg( target_has_atomic = "ptr" ) ) ]
476461 #[ cfg( feature = "alloc" ) ]
477462 pub use futures_util:: try_stream:: {
478463 // For TryStreamExt:
@@ -509,17 +494,11 @@ pub mod task {
509494 #[ cfg( feature = "alloc" ) ]
510495 pub use futures_util:: task:: { SpawnExt , LocalSpawnExt } ;
511496
512- #[ cfg_attr(
513- feature = "cfg-target-has-atomic" ,
514- cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
515- ) ]
497+ #[ cfg_attr( feature = "cfg-target-has-atomic" , cfg( target_has_atomic = "ptr" ) ) ]
516498 #[ cfg( feature = "alloc" ) ]
517499 pub use futures_util:: task:: { waker, waker_ref, WakerRef , ArcWake } ;
518500
519- #[ cfg_attr(
520- feature = "cfg-target-has-atomic" ,
521- cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
522- ) ]
501+ #[ cfg_attr( feature = "cfg-target-has-atomic" , cfg( target_has_atomic = "ptr" ) ) ]
523502 pub use futures_util:: task:: AtomicWaker ;
524503}
525504
0 commit comments