Skip to content

Commit d51a80c

Browse files
committed
Enable deny-warnings feature everywhere in CI
1 parent 1d3ec29 commit d51a80c

File tree

6 files changed

+16
-3
lines changed

6 files changed

+16
-3
lines changed

ci/base-tests.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ fi
1515
cargo build --features deny-warnings
1616
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;

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)