File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
src/tools/clippy/declare_clippy_lint Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,6 @@ proc-macro = true
11
11
itertools = " 0.10.1"
12
12
quote = " 1.0.21"
13
13
syn = " 1.0.100"
14
+
15
+ [features ]
16
+ deny-warnings = []
Original file line number Diff line number Diff line change 1
1
#![ feature( let_chains) ]
2
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) ]
3
5
4
6
use proc_macro:: TokenStream ;
5
7
use quote:: { format_ident, quote} ;
@@ -29,7 +31,7 @@ struct ClippyLint {
29
31
}
30
32
31
33
impl Parse for ClippyLint {
32
- fn parse ( input : ParseStream ) -> Result < Self > {
34
+ fn parse ( input : ParseStream < ' _ > ) -> Result < Self > {
33
35
let attrs = input. call ( Attribute :: parse_outer) ?;
34
36
35
37
let mut in_code = false ;
You can’t perform that action at this time.
0 commit comments