File tree Expand file tree Collapse file tree 5 files changed +7
-2
lines changed Expand file tree Collapse file tree 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"
6161rustc_tools_util = { version = " 0.2.0" , path = " rustc_tools_util" }
6262
6363[features ]
64+ deny-warnings = []
6465debugging = []
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ if [ "$TRAVIS_OS_NAME" == "linux" ]; then
77 remark -f * .md -f doc/* .md > /dev/null
88fi
99# 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 "
1212# for faster build, share target dir between subcrates
1313export CARGO_TARGET_DIR=` pwd` /target/
1414(cd clippy_lints && cargo test)
Original file line number Diff line number Diff line change 99#![ recursion_limit = "512" ]
1010#![ warn( rust_2018_idioms, trivial_casts, trivial_numeric_casts) ]
1111#![ deny( rustc:: internal) ]
12+ #![ cfg_attr( feature = "deny-warnings" , deny( warnings) ) ]
1213#![ feature( crate_visibility_modifier) ]
1314#![ feature( concat_idents) ]
1415
Original file line number Diff line number Diff line change 1+ #![ cfg_attr( feature = "deny-warnings" , deny( warnings) ) ]
12#![ feature( rustc_private) ]
23
34// 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+
13use rustc_tools_util:: * ;
24
35const 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