From ea55596d5bc29708232a0bb232bf35d5e2e6cbce Mon Sep 17 00:00:00 2001 From: Lukas Kalbertodt Date: Sun, 5 Nov 2017 10:40:06 +0100 Subject: Relax #[deny(warnings)] in some crate for cargotest Otherwise changes to the compiler are unable to introduce new warnings: some crates tested by cargotest deny all warnings and thus, the CI build fails. Thanks SimonSapin for the patch! --- src/tools/cargotest/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools/cargotest/main.rs b/src/tools/cargotest/main.rs index 4f4960efc9b..a6c56a13076 100644 --- a/src/tools/cargotest/main.rs +++ b/src/tools/cargotest/main.rs @@ -165,6 +165,8 @@ fn run_cargo_test(cargo_path: &Path, crate_path: &Path, packages: &[&str]) -> bo let status = command // Disable rust-lang/cargo's cross-compile tests .env("CFG_DISABLE_CROSS_TESTS", "1") + // Relax #![deny(warnings)] in some crates + .env("RUSTFLAGS", "--cap-lints warn") .current_dir(crate_path) .status() .expect(""); -- cgit 1.4.1-3-g733a5