diff --git a/futures-channel/src/lib.rs b/futures-channel/src/lib.rs index 459db481b1..2769425677 100644 --- a/futures-channel/src/lib.rs +++ b/futures-channel/src/lib.rs @@ -9,7 +9,8 @@ #![cfg_attr(not(feature = "std"), no_std)] #![warn(missing_docs, missing_debug_implementations, rust_2018_idioms, unreachable_pub)] -#![warn(single_use_lifetimes)] +// It cannot be included in the published code because this lints have false positives in the minimum required version. +#![cfg_attr(test, warn(single_use_lifetimes))] #![warn(clippy::all)] #![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))] diff --git a/futures-core/src/lib.rs b/futures-core/src/lib.rs index 711acfcfb2..95331a2f29 100644 --- a/futures-core/src/lib.rs +++ b/futures-core/src/lib.rs @@ -5,7 +5,8 @@ #![cfg_attr(not(feature = "std"), no_std)] #![warn(missing_docs, missing_debug_implementations, rust_2018_idioms, unreachable_pub)] -#![warn(single_use_lifetimes)] +// It cannot be included in the published code because this lints have false positives in the minimum required version. +#![cfg_attr(test, warn(single_use_lifetimes))] #![warn(clippy::all)] #![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))] diff --git a/futures-executor/src/lib.rs b/futures-executor/src/lib.rs index 5d1d290d9d..c4d4532ad8 100644 --- a/futures-executor/src/lib.rs +++ b/futures-executor/src/lib.rs @@ -6,7 +6,8 @@ #![cfg_attr(not(feature = "std"), no_std)] #![warn(missing_docs, missing_debug_implementations, rust_2018_idioms, unreachable_pub)] -#![warn(single_use_lifetimes)] +// It cannot be included in the published code because this lints have false positives in the minimum required version. +#![cfg_attr(test, warn(single_use_lifetimes))] #![warn(clippy::all)] #![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))] diff --git a/futures-io/src/lib.rs b/futures-io/src/lib.rs index e2ad924f3c..a73c3f6bc0 100644 --- a/futures-io/src/lib.rs +++ b/futures-io/src/lib.rs @@ -11,7 +11,8 @@ #![cfg_attr(not(feature = "std"), no_std)] #![warn(missing_docs, missing_debug_implementations, rust_2018_idioms, unreachable_pub)] -#![warn(single_use_lifetimes)] +// It cannot be included in the published code because this lints have false positives in the minimum required version. +#![cfg_attr(test, warn(single_use_lifetimes))] #![warn(clippy::all)] #![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))] diff --git a/futures-select-macro/src/lib.rs b/futures-select-macro/src/lib.rs index 21ccc4222b..2cc2a4c9a4 100644 --- a/futures-select-macro/src/lib.rs +++ b/futures-select-macro/src/lib.rs @@ -2,7 +2,8 @@ #![recursion_limit="128"] #![warn(rust_2018_idioms, unreachable_pub)] -#![warn(single_use_lifetimes)] +// It cannot be included in the published code because this lints have false positives in the minimum required version. +#![cfg_attr(test, warn(single_use_lifetimes))] #![warn(clippy::all)] extern crate proc_macro; diff --git a/futures-sink/src/lib.rs b/futures-sink/src/lib.rs index 12e2a8f59e..a690ff9dae 100644 --- a/futures-sink/src/lib.rs +++ b/futures-sink/src/lib.rs @@ -5,7 +5,8 @@ #![cfg_attr(not(feature = "std"), no_std)] #![warn(missing_docs, missing_debug_implementations, rust_2018_idioms, unreachable_pub)] -#![warn(single_use_lifetimes)] +// It cannot be included in the published code because this lints have false positives in the minimum required version. +#![cfg_attr(test, warn(single_use_lifetimes))] #![warn(clippy::all)] #![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))] diff --git a/futures-test/src/lib.rs b/futures-test/src/lib.rs index 1ed22d073e..f9c7c421e7 100644 --- a/futures-test/src/lib.rs +++ b/futures-test/src/lib.rs @@ -1,7 +1,8 @@ //! Utilities to make testing [`Future`s](futures_core::Future) easier #![warn(missing_docs, missing_debug_implementations, rust_2018_idioms, unreachable_pub)] -#![warn(single_use_lifetimes)] +// It cannot be included in the published code because this lints have false positives in the minimum required version. +#![cfg_attr(test, warn(single_use_lifetimes))] #![warn(clippy::all)] #![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))] diff --git a/futures-util/src/lib.rs b/futures-util/src/lib.rs index 4636e70bab..70e8d6db76 100644 --- a/futures-util/src/lib.rs +++ b/futures-util/src/lib.rs @@ -7,7 +7,8 @@ #![cfg_attr(not(feature = "std"), no_std)] #![warn(missing_docs, missing_debug_implementations, rust_2018_idioms, unreachable_pub)] -#![warn(single_use_lifetimes)] +// It cannot be included in the published code because this lints have false positives in the minimum required version. +#![cfg_attr(test, warn(single_use_lifetimes))] #![warn(clippy::all)] #![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))] diff --git a/futures/src/lib.rs b/futures/src/lib.rs index 4affb03b74..215a596957 100644 --- a/futures/src/lib.rs +++ b/futures/src/lib.rs @@ -27,7 +27,8 @@ #![cfg_attr(not(feature = "std"), no_std)] #![warn(missing_docs, missing_debug_implementations, rust_2018_idioms, unreachable_pub)] -#![warn(single_use_lifetimes)] +// It cannot be included in the published code because this lints have false positives in the minimum required version. +#![cfg_attr(test, warn(single_use_lifetimes))] #![warn(clippy::all)] #![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))]