Skip to content

Commit b5a6714

Browse files
committed
Auto merge of #4849 - flip1995:deny_warnings, r=phansch
Deny warnings in CI Removes the `debugging` feature, that wasn't used anymore and adds/enables the `deny-warnings` feature for every sub-crate of Clippy. changelog: none
2 parents dbdd75a + d51a80c commit b5a6714

File tree

9 files changed

+21
-9
lines changed

9 files changed

+21
-9
lines changed

Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,3 @@ rustc_tools_util = { version = "0.2.0", path = "rustc_tools_util"}
5858

5959
[features]
6060
deny-warnings = []
61-
debugging = []

appveyor.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ install:
3737
build: false
3838

3939
build_script:
40-
- cargo build --features debugging
40+
- cargo build --features deny-warnings
4141

4242
test_script:
43-
- cargo test --features debugging
43+
- cargo test --features deny-warnings
4444

4545
notifications:
4646
- provider: Email

ci/base-tests.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
1212
remark -f ./*.md -f doc/*.md > /dev/null
1313
fi
1414
# build clippy in debug mode and run tests
15-
cargo build --features "debugging deny-warnings"
16-
cargo test --features "debugging deny-warnings"
15+
cargo build --features deny-warnings
16+
cargo test --features deny-warnings
1717

18-
(cd clippy_lints && cargo test)
19-
(cd rustc_tools_util && cargo test)
20-
(cd clippy_dev && cargo test)
18+
(cd clippy_lints && cargo test --features deny-warnings)
19+
(cd rustc_tools_util && cargo test --features deny-warnings)
20+
(cd clippy_dev && cargo test --features deny-warnings)
2121

2222
# make sure clippy can be called via ./path/to/cargo-clippy
2323
(

clippy_dev/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ regex = "1"
1111
lazy_static = "1.0"
1212
shell-escape = "0.1"
1313
walkdir = "2"
14+
15+
[features]
16+
deny-warnings = []

clippy_dev/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg_attr(feature = "deny-warnings", deny(warnings))]
2+
13
use itertools::Itertools;
24
use lazy_static::lazy_static;
35
use regex::Regex;

clippy_dev/src/main.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg_attr(feature = "deny-warnings", deny(warnings))]
2+
13
extern crate clap;
24
extern crate clippy_dev;
35
extern crate regex;

clippy_lints/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ semver = "0.9.0"
3535
url = { version = "2.1.0", features = ["serde"] }
3636

3737
[features]
38-
debugging = []
38+
deny-warnings = []

rustc_tools_util/Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,8 @@ license = "MIT OR Apache-2.0"
99
keywords = ["rustc", "tool", "git", "version", "hash"]
1010
categories = ["development-tools"]
1111
edition = "2018"
12+
1213
[dependencies]
14+
15+
[features]
16+
deny-warnings = []

rustc_tools_util/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg_attr(feature = "deny-warnings", deny(warnings))]
2+
13
use std::env;
24

35
#[macro_export]

0 commit comments

Comments
 (0)