diff options
| author | Lukas Kalbertodt <lukas.kalbertodt@gmail.com> | 2017-11-05 10:40:06 +0100 |
|---|---|---|
| committer | Lukas Kalbertodt <lukas.kalbertodt@gmail.com> | 2017-11-05 10:40:06 +0100 |
| commit | ea55596d5bc29708232a0bb232bf35d5e2e6cbce (patch) | |
| tree | bc90be1aabcb0a2ff5e94ac507c7da77acf81bf6 | |
| parent | deb7360fa7838aa718b5a599460761aeb940b89e (diff) | |
| download | rust-ea55596d5bc29708232a0bb232bf35d5e2e6cbce.tar.gz rust-ea55596d5bc29708232a0bb232bf35d5e2e6cbce.zip | |
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!
| -rw-r--r-- | src/tools/cargotest/main.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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(""); |
