File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 22
22
//! completion, but *do not block* the thread running them.
23
23
24
24
#![ feature( futures_api) ]
25
+ #![ cfg_attr( feature = "cfg-target-has-atomic" , feature( cfg_target_has_atomic) ) ]
25
26
26
27
#![ cfg_attr( not( feature = "std" ) , no_std) ]
27
28
28
29
#![ warn( missing_docs, missing_debug_implementations, rust_2018_idioms) ]
29
30
30
31
#![ doc( html_root_url = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.12/futures" ) ]
31
32
33
+ #[ cfg( all( feature = "cfg-target-has-atomic" , not( feature = "nightly" ) ) ) ]
34
+ compile_error ! ( "The `cfg-target-has-atomic` feature requires the `nightly` feature as an explicit opt-in to unstable features" ) ;
35
+
32
36
#[ doc( hidden) ] pub use futures_util:: core_reexport;
33
37
34
38
#[ doc( hidden) ] pub use futures_core:: future:: Future ;
@@ -376,7 +380,7 @@ pub mod task {
376
380
} ;
377
381
378
382
#[ cfg_attr(
379
- feature = "nightly " ,
383
+ feature = "target-has-atomic " ,
380
384
cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
381
385
) ]
382
386
pub use futures_util:: task:: AtomicWaker ;
You can’t perform that action at this time.
0 commit comments