We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d407778 commit b4c90abCopy full SHA for b4c90ab
src/tools/clippy/declare_clippy_lint/Cargo.toml
@@ -11,3 +11,6 @@ proc-macro = true
11
itertools = "0.10.1"
12
quote = "1.0.21"
13
syn = "1.0.100"
14
+
15
+[features]
16
+deny-warnings = []
src/tools/clippy/declare_clippy_lint/src/lib.rs
@@ -1,5 +1,7 @@
1
#![feature(let_chains)]
2
#![cfg_attr(feature = "deny-warnings", deny(warnings))]
3
+// warn on lints, that are included in `rust-lang/rust`s bootstrap
4
+#![warn(rust_2018_idioms, unused_lifetimes)]
5
6
use proc_macro::TokenStream;
7
use quote::{format_ident, quote};
@@ -29,7 +31,7 @@ struct ClippyLint {
29
31
}
30
32
33
impl Parse for ClippyLint {
- fn parse(input: ParseStream) -> Result<Self> {
34
+ fn parse(input: ParseStream<'_>) -> Result<Self> {
35
let attrs = input.call(Attribute::parse_outer)?;
36
37
let mut in_code = false;
0 commit comments