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
This commit is contained in:
bors 2019-11-28 10:27:46 +00:00
commit b5a6714155
9 changed files with 21 additions and 9 deletions

View file

@ -58,4 +58,3 @@ rustc_tools_util = { version = "0.2.0", path = "rustc_tools_util"}
[features]
deny-warnings = []
debugging = []

View file

@ -37,10 +37,10 @@ install:
build: false
build_script:
- cargo build --features debugging
- cargo build --features deny-warnings
test_script:
- cargo test --features debugging
- cargo test --features deny-warnings
notifications:
- provider: Email

View file

@ -12,12 +12,12 @@ if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
remark -f ./*.md -f doc/*.md > /dev/null
fi
# build clippy in debug mode and run tests
cargo build --features "debugging deny-warnings"
cargo test --features "debugging deny-warnings"
cargo build --features deny-warnings
cargo test --features deny-warnings
(cd clippy_lints && cargo test)
(cd rustc_tools_util && cargo test)
(cd clippy_dev && cargo test)
(cd clippy_lints && cargo test --features deny-warnings)
(cd rustc_tools_util && cargo test --features deny-warnings)
(cd clippy_dev && cargo test --features deny-warnings)
# make sure clippy can be called via ./path/to/cargo-clippy
(

View file

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

View file

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

View file

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

View file

@ -35,4 +35,4 @@ semver = "0.9.0"
url = { version = "2.1.0", features = ["serde"] }
[features]
debugging = []
deny-warnings = []

View file

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

View file

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