Skip to content

Commit ea55596

Browse files
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!
1 parent deb7360 commit ea55596

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/cargotest/main.rs

+2
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ fn run_cargo_test(cargo_path: &Path, crate_path: &Path, packages: &[&str]) -> bo
165165
let status = command
166166
// Disable rust-lang/cargo's cross-compile tests
167167
.env("CFG_DISABLE_CROSS_TESTS", "1")
168+
// Relax #![deny(warnings)] in some crates
169+
.env("RUSTFLAGS", "--cap-lints warn")
168170
.current_dir(crate_path)
169171
.status()
170172
.expect("");

0 commit comments

Comments
 (0)