diff --git a/crossbeam-channel/src/lib.rs b/crossbeam-channel/src/lib.rs index 76f905a8d..e08ac08f9 100644 --- a/crossbeam-channel/src/lib.rs +++ b/crossbeam-channel/src/lib.rs @@ -330,6 +330,8 @@ ))] #![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)] #![cfg_attr(not(feature = "std"), no_std)] +// matches! requires Rust 1.42 +#![allow(clippy::match_like_matches_macro)] use cfg_if::cfg_if; diff --git a/crossbeam-deque/src/lib.rs b/crossbeam-deque/src/lib.rs index fcdb51997..dea6153b0 100644 --- a/crossbeam-deque/src/lib.rs +++ b/crossbeam-deque/src/lib.rs @@ -91,6 +91,8 @@ ))] #![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)] #![cfg_attr(not(feature = "std"), no_std)] +// matches! requires Rust 1.42 +#![allow(clippy::match_like_matches_macro)] use cfg_if::cfg_if; diff --git a/crossbeam-epoch/src/lib.rs b/crossbeam-epoch/src/lib.rs index 092d71c33..f64d16cd8 100644 --- a/crossbeam-epoch/src/lib.rs +++ b/crossbeam-epoch/src/lib.rs @@ -59,6 +59,8 @@ #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(feature = "nightly", feature(cfg_target_has_atomic))] #![cfg_attr(feature = "nightly", feature(const_fn))] +// matches! requires Rust 1.42 +#![allow(clippy::match_like_matches_macro)] use cfg_if::cfg_if; diff --git a/crossbeam-queue/src/lib.rs b/crossbeam-queue/src/lib.rs index 29ab156fc..88203f6cf 100644 --- a/crossbeam-queue/src/lib.rs +++ b/crossbeam-queue/src/lib.rs @@ -15,6 +15,8 @@ #![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)] #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(feature = "nightly", feature(cfg_target_has_atomic))] +// matches! requires Rust 1.42 +#![allow(clippy::match_like_matches_macro)] #[cfg_attr(feature = "nightly", cfg(target_has_atomic = "ptr"))] cfg_if::cfg_if! { diff --git a/crossbeam-skiplist/src/lib.rs b/crossbeam-skiplist/src/lib.rs index 9ca0c51cb..fb01f8bda 100644 --- a/crossbeam-skiplist/src/lib.rs +++ b/crossbeam-skiplist/src/lib.rs @@ -10,6 +10,8 @@ #![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)] #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(feature = "nightly", feature(cfg_target_has_atomic))] +// matches! requires Rust 1.42 +#![allow(clippy::match_like_matches_macro)] use cfg_if::cfg_if; diff --git a/crossbeam-utils/src/lib.rs b/crossbeam-utils/src/lib.rs index 50babcb66..f2bd460b9 100644 --- a/crossbeam-utils/src/lib.rs +++ b/crossbeam-utils/src/lib.rs @@ -34,6 +34,8 @@ #![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)] #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(feature = "nightly", feature(cfg_target_has_atomic))] +// matches! requires Rust 1.42 +#![allow(clippy::match_like_matches_macro)] #[cfg_attr(feature = "nightly", cfg(target_has_atomic = "ptr"))] pub mod atomic; diff --git a/src/lib.rs b/src/lib.rs index aa985698f..72afa7a48 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -48,6 +48,8 @@ #![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)] #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(feature = "nightly", feature(cfg_target_has_atomic))] +// matches! requires Rust 1.42 +#![allow(clippy::match_like_matches_macro)] #[cfg_attr(feature = "nightly", cfg(target_has_atomic = "ptr"))] pub use crossbeam_utils::atomic;