diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2018-07-05 16:44:13 -0500 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2018-07-05 16:52:46 -0500 |
| commit | 0ed32313a223dbe1a1d5f61cd66d533992e26f6d (patch) | |
| tree | 7fc70f68da53f422210720afc4a3a0c0dd291c6b /src/liballoc/lib.rs | |
| parent | bbf688a84de7001d033764b848a50cbad42f3d5a (diff) | |
| download | rust-0ed32313a223dbe1a1d5f61cd66d533992e26f6d.tar.gz rust-0ed32313a223dbe1a1d5f61cd66d533992e26f6d.zip | |
#[cfg(target_has_atomic_cas)] -> #[cfg(target_has_atomic = "cas")]
Diffstat (limited to 'src/liballoc/lib.rs')
| -rw-r--r-- | src/liballoc/lib.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs index 66bf8de1993..35bf8d1b792 100644 --- a/src/liballoc/lib.rs +++ b/src/liballoc/lib.rs @@ -86,7 +86,6 @@ #![feature(box_patterns)] #![feature(box_syntax)] #![feature(cfg_target_has_atomic)] -#![cfg_attr(not(stage0), feature(cfg_target_has_atomic_cas))] #![feature(coerce_unsized)] #![feature(collections_range)] #![feature(const_fn)] @@ -163,8 +162,10 @@ mod boxed { #[cfg(test)] mod boxed_test; pub mod collections; -#[cfg_attr(stage0, cfg(target_has_atomic = "ptr"))] -#[cfg_attr(not(stage0), cfg(all(target_has_atomic = "ptr", target_has_atomic_cas)))] +#[cfg(any( + all(stage0, target_has_atomic = "ptr"), + all(not(stage0), target_has_atomic = "ptr", target_has_atomic = "cas") +))] pub mod sync; pub mod rc; pub mod raw_vec; |
