From e5a249cdcaa6536589d0d12caf036fe6f62689c6 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Thu, 27 Jun 2019 04:08:07 +0900 Subject: [PATCH] Use #![warn(single_use_lifetimes)] in futures-async-macro Apply https://github.com/rust-lang-nursery/futures-rs/pull/1680 --- futures-async-macro/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/futures-async-macro/src/lib.rs b/futures-async-macro/src/lib.rs index 4e04dbe631..9ad6874e5d 100644 --- a/futures-async-macro/src/lib.rs +++ b/futures-async-macro/src/lib.rs @@ -2,6 +2,8 @@ #![recursion_limit = "128"] #![warn(rust_2018_idioms, unreachable_pub)] +// 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;