Skip to content

Commit 82add0f

Browse files
authored
Rollup merge of rust-lang#65214 - Amanieu:cfg_atomic, r=alexcrichton
Split non-CAS atomic support off into target_has_atomic_load_store This PR implements my proposed changes in rust-lang#32976 (comment) by removing `target_has_atomic = "cas"` and splitting `target_has_atomic` into two separate `cfg`s: * `target_has_atomic = 8/16/32/64/128`: This indicates the largest width that the target can atomically CAS (which implies support for all atomic operations). * ` target_has_atomic_load_store = 8/16/32/64/128`: This indicates the largest width that the target can support loading or storing atomically (but may not support CAS). cc rust-lang#32976 r? @alexcrichton
2 parents aa2ae56 + dfe76a1 commit 82add0f

File tree

7 files changed

+127
-98
lines changed

7 files changed

+127
-98
lines changed

src/liballoc/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ mod boxed {
153153
#[cfg(test)]
154154
mod tests;
155155
pub mod collections;
156-
#[cfg(all(target_has_atomic = "ptr", target_has_atomic = "cas"))]
156+
#[cfg(target_has_atomic = "ptr")]
157157
pub mod sync;
158158
pub mod rc;
159159
pub mod raw_vec;

0 commit comments

Comments
 (0)