Enable deny-warnings feature everywhere in CI

This commit is contained in:
flip1995 2019-11-25 17:23:48 +01:00
parent 1d3ec29880
commit d51a80c57e
No known key found for this signature in database
GPG key ID: 693086869D506637
6 changed files with 16 additions and 3 deletions

View file

@ -15,9 +15,9 @@ fi
cargo build --features deny-warnings cargo build --features deny-warnings
cargo test --features deny-warnings cargo test --features deny-warnings
(cd clippy_lints && cargo test) (cd clippy_lints && cargo test --features deny-warnings)
(cd rustc_tools_util && cargo test) (cd rustc_tools_util && cargo test --features deny-warnings)
(cd clippy_dev && cargo test) (cd clippy_dev && cargo test --features deny-warnings)
# make sure clippy can be called via ./path/to/cargo-clippy # make sure clippy can be called via ./path/to/cargo-clippy
( (

View file

@ -11,3 +11,6 @@ regex = "1"
lazy_static = "1.0" lazy_static = "1.0"
shell-escape = "0.1" shell-escape = "0.1"
walkdir = "2" walkdir = "2"
[features]
deny-warnings = []

View file

@ -1,3 +1,5 @@
#![cfg_attr(feature = "deny-warnings", deny(warnings))]
use itertools::Itertools; use itertools::Itertools;
use lazy_static::lazy_static; use lazy_static::lazy_static;
use regex::Regex; use regex::Regex;

View file

@ -1,3 +1,5 @@
#![cfg_attr(feature = "deny-warnings", deny(warnings))]
extern crate clap; extern crate clap;
extern crate clippy_dev; extern crate clippy_dev;
extern crate regex; extern crate regex;

View file

@ -9,4 +9,8 @@ license = "MIT OR Apache-2.0"
keywords = ["rustc", "tool", "git", "version", "hash"] keywords = ["rustc", "tool", "git", "version", "hash"]
categories = ["development-tools"] categories = ["development-tools"]
edition = "2018" edition = "2018"
[dependencies] [dependencies]
[features]
deny-warnings = []

View file

@ -1,3 +1,5 @@
#![cfg_attr(feature = "deny-warnings", deny(warnings))]
use std::env; use std::env;
#[macro_export] #[macro_export]