Skip to content

Commit

Permalink
Merge #428
Browse files Browse the repository at this point in the history
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 <te316e89@gmail.com>
  • Loading branch information
bors[bot] and taiki-e committed Oct 15, 2019
2 parents ae148de + 5b5d727 commit f06c1af
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16 deletions.
5 changes: 1 addition & 4 deletions crossbeam-epoch/src/lib.rs
Expand Up @@ -73,10 +73,7 @@ cfg_if! {
}
}

#[cfg_attr(
feature = "nightly",
cfg(all(target_has_atomic = "cas", target_has_atomic = "ptr"))
)]
#[cfg_attr(feature = "nightly", cfg(target_has_atomic = "ptr"))]
cfg_if! {
if #[cfg(any(feature = "alloc", feature = "std"))] {
extern crate crossbeam_utils;
Expand Down
5 changes: 1 addition & 4 deletions crossbeam-skiplist/src/lib.rs
Expand Up @@ -18,10 +18,7 @@ cfg_if! {
}
}

#[cfg_attr(
feature = "nightly",
cfg(all(target_has_atomic = "cas", target_has_atomic = "ptr"))
)]
#[cfg_attr(feature = "nightly", cfg(target_has_atomic = "ptr"))]
cfg_if! {
if #[cfg(any(feature = "alloc", feature = "std"))] {
extern crate crossbeam_epoch as epoch;
Expand Down
5 changes: 1 addition & 4 deletions crossbeam-utils/src/lib.rs
Expand Up @@ -44,10 +44,7 @@ cfg_if! {
}
}

#[cfg_attr(
feature = "nightly",
cfg(all(target_has_atomic = "cas", target_has_atomic = "ptr"))
)]
#[cfg_attr(feature = "nightly", cfg(target_has_atomic = "ptr"))]
pub mod atomic;

mod cache_padded;
Expand Down
5 changes: 1 addition & 4 deletions src/lib.rs
Expand Up @@ -68,10 +68,7 @@ pub use _epoch::crossbeam_epoch as epoch;

extern crate crossbeam_utils;

#[cfg_attr(
feature = "nightly",
cfg(all(target_has_atomic = "cas", target_has_atomic = "ptr"))
)]
#[cfg_attr(feature = "nightly", cfg(target_has_atomic = "ptr"))]
pub use crossbeam_utils::atomic;

/// Miscellaneous utilities.
Expand Down

0 comments on commit f06c1af

Please sign in to comment.