mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
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:
commit
b5a6714155
@ -58,4 +58,3 @@ rustc_tools_util = { version = "0.2.0", path = "rustc_tools_util"}
|
||||
|
||||
[features]
|
||||
deny-warnings = []
|
||||
debugging = []
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
(
|
||||
|
@ -11,3 +11,6 @@ regex = "1"
|
||||
lazy_static = "1.0"
|
||||
shell-escape = "0.1"
|
||||
walkdir = "2"
|
||||
|
||||
[features]
|
||||
deny-warnings = []
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![cfg_attr(feature = "deny-warnings", deny(warnings))]
|
||||
|
||||
use itertools::Itertools;
|
||||
use lazy_static::lazy_static;
|
||||
use regex::Regex;
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![cfg_attr(feature = "deny-warnings", deny(warnings))]
|
||||
|
||||
extern crate clap;
|
||||
extern crate clippy_dev;
|
||||
extern crate regex;
|
||||
|
@ -35,4 +35,4 @@ semver = "0.9.0"
|
||||
url = { version = "2.1.0", features = ["serde"] }
|
||||
|
||||
[features]
|
||||
debugging = []
|
||||
deny-warnings = []
|
||||
|
@ -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 = []
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![cfg_attr(feature = "deny-warnings", deny(warnings))]
|
||||
|
||||
use std::env;
|
||||
|
||||
#[macro_export]
|
||||
|
Loading…
Reference in New Issue
Block a user