File tree 5 files changed +7
-2
lines changed
5 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -61,4 +61,5 @@ rustc-workspace-hack = "1.0.0"
61
61
rustc_tools_util = { version = " 0.2.0" , path = " rustc_tools_util" }
62
62
63
63
[features ]
64
+ deny-warnings = []
64
65
debugging = []
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ if [ "$TRAVIS_OS_NAME" == "linux" ]; then
7
7
remark -f * .md -f doc/* .md > /dev/null
8
8
fi
9
9
# build clippy in debug mode and run tests
10
- cargo build --features debugging
11
- cargo test --features debugging
10
+ cargo build --features " debugging deny-warnings "
11
+ cargo test --features " debugging deny-warnings "
12
12
# for faster build, share target dir between subcrates
13
13
export CARGO_TARGET_DIR=` pwd` /target/
14
14
(cd clippy_lints && cargo test)
Original file line number Diff line number Diff line change 9
9
#![ recursion_limit = "512" ]
10
10
#![ warn( rust_2018_idioms, trivial_casts, trivial_numeric_casts) ]
11
11
#![ deny( rustc:: internal) ]
12
+ #![ cfg_attr( feature = "deny-warnings" , deny( warnings) ) ]
12
13
#![ feature( crate_visibility_modifier) ]
13
14
#![ feature( concat_idents) ]
14
15
Original file line number Diff line number Diff line change
1
+ #![ cfg_attr( feature = "deny-warnings" , deny( warnings) ) ]
1
2
#![ feature( rustc_private) ]
2
3
3
4
// FIXME: switch to something more ergonomic here, once available.
Original file line number Diff line number Diff line change
1
+ #![ cfg_attr( feature = "deny-warnings" , deny( warnings) ) ]
2
+
1
3
use rustc_tools_util:: * ;
2
4
3
5
const CARGO_CLIPPY_HELP : & str = r#"Checks a package to catch common mistakes and improve your Rust code.
You can’t perform that action at this time.
0 commit comments