Skip to content

Commit f06c1af

Browse files
bors[bot]taiki-e
andauthored
Merge #428
428: Fix breakage with nightly feature r=jeehoonkang a=taiki-e `target_has_atomic = "cas"` was removed in rust-lang/rust#65214. Fixes rust-lang/rust#65424 Co-authored-by: Taiki Endo <[email protected]>
2 parents ae148de + 5b5d727 commit f06c1af

File tree

4 files changed

+4
-16
lines changed

4 files changed

+4
-16
lines changed

crossbeam-epoch/src/lib.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,7 @@ cfg_if! {
7373
}
7474
}
7575

76-
#[cfg_attr(
77-
feature = "nightly",
78-
cfg(all(target_has_atomic = "cas", target_has_atomic = "ptr"))
79-
)]
76+
#[cfg_attr(feature = "nightly", cfg(target_has_atomic = "ptr"))]
8077
cfg_if! {
8178
if #[cfg(any(feature = "alloc", feature = "std"))] {
8279
extern crate crossbeam_utils;

crossbeam-skiplist/src/lib.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ cfg_if! {
1818
}
1919
}
2020

21-
#[cfg_attr(
22-
feature = "nightly",
23-
cfg(all(target_has_atomic = "cas", target_has_atomic = "ptr"))
24-
)]
21+
#[cfg_attr(feature = "nightly", cfg(target_has_atomic = "ptr"))]
2522
cfg_if! {
2623
if #[cfg(any(feature = "alloc", feature = "std"))] {
2724
extern crate crossbeam_epoch as epoch;

crossbeam-utils/src/lib.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ cfg_if! {
4444
}
4545
}
4646

47-
#[cfg_attr(
48-
feature = "nightly",
49-
cfg(all(target_has_atomic = "cas", target_has_atomic = "ptr"))
50-
)]
47+
#[cfg_attr(feature = "nightly", cfg(target_has_atomic = "ptr"))]
5148
pub mod atomic;
5249

5350
mod cache_padded;

src/lib.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,7 @@ pub use _epoch::crossbeam_epoch as epoch;
6868

6969
extern crate crossbeam_utils;
7070

71-
#[cfg_attr(
72-
feature = "nightly",
73-
cfg(all(target_has_atomic = "cas", target_has_atomic = "ptr"))
74-
)]
71+
#[cfg_attr(feature = "nightly", cfg(target_has_atomic = "ptr"))]
7572
pub use crossbeam_utils::atomic;
7673

7774
/// Miscellaneous utilities.

0 commit comments

Comments
 (0)