@@ -75,10 +75,7 @@ pub use futures_util::pin_mut;
75
75
#[ cfg( feature = "async-await" ) ]
76
76
pub use futures_util:: { pending, poll} ; // Async-await
77
77
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" ) ) ]
82
79
#[ cfg( feature = "alloc" ) ]
83
80
pub mod channel {
84
81
//! Cross-task communication.
@@ -243,10 +240,7 @@ pub mod future {
243
240
select_all, SelectAll ,
244
241
} ;
245
242
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" ) ) ]
250
244
#[ cfg( feature = "alloc" ) ]
251
245
pub use futures_util:: future:: {
252
246
abortable, Abortable , AbortHandle , AbortRegistration , Aborted ,
@@ -319,10 +313,7 @@ pub mod io {
319
313
} ;
320
314
}
321
315
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" ) ) ]
326
317
#[ cfg( feature = "alloc" ) ]
327
318
pub mod lock {
328
319
//! Futures-powered synchronization primitives.
@@ -438,10 +429,7 @@ pub mod stream {
438
429
Chunks ,
439
430
} ;
440
431
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" ) ) ]
445
433
#[ cfg( feature = "alloc" ) ]
446
434
pub use futures_util:: stream:: {
447
435
FuturesOrdered ,
@@ -469,10 +457,7 @@ pub mod stream {
469
457
IntoStream ,
470
458
} ;
471
459
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" ) ) ]
476
461
#[ cfg( feature = "alloc" ) ]
477
462
pub use futures_util:: try_stream:: {
478
463
// For TryStreamExt:
@@ -509,17 +494,11 @@ pub mod task {
509
494
#[ cfg( feature = "alloc" ) ]
510
495
pub use futures_util:: task:: { SpawnExt , LocalSpawnExt } ;
511
496
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" ) ) ]
516
498
#[ cfg( feature = "alloc" ) ]
517
499
pub use futures_util:: task:: { waker, waker_ref, WakerRef , ArcWake } ;
518
500
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" ) ) ]
523
502
pub use futures_util:: task:: AtomicWaker ;
524
503
}
525
504
0 commit comments