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]
|
[features]
|
||||||
deny-warnings = []
|
deny-warnings = []
|
||||||
debugging = []
|
|
||||||
|
@ -37,10 +37,10 @@ install:
|
|||||||
build: false
|
build: false
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- cargo build --features debugging
|
- cargo build --features deny-warnings
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- cargo test --features debugging
|
- cargo test --features deny-warnings
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
- provider: Email
|
- provider: Email
|
||||||
|
@ -12,12 +12,12 @@ if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|||||||
remark -f ./*.md -f doc/*.md > /dev/null
|
remark -f ./*.md -f doc/*.md > /dev/null
|
||||||
fi
|
fi
|
||||||
# build clippy in debug mode and run tests
|
# build clippy in debug mode and run tests
|
||||||
cargo build --features "debugging deny-warnings"
|
cargo build --features deny-warnings
|
||||||
cargo test --features "debugging 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
|
||||||
(
|
(
|
||||||
|
@ -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 = []
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -35,4 +35,4 @@ semver = "0.9.0"
|
|||||||
url = { version = "2.1.0", features = ["serde"] }
|
url = { version = "2.1.0", features = ["serde"] }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
debugging = []
|
deny-warnings = []
|
||||||
|
@ -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 = []
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#![cfg_attr(feature = "deny-warnings", deny(warnings))]
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
|
Loading…
Reference in New Issue
Block a user