Skip to content

Commit 521d937

Browse files
committed
Pass --cap-lints=allow to tests
1 parent d16ba45 commit 521d937

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build_system/tests.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,14 +245,17 @@ pub(crate) fn run_tests(
245245
let run_extended_sysroot = config::get_bool("testsuite.extended_sysroot");
246246

247247
if run_base_sysroot || run_extended_sysroot {
248-
let target_compiler = build_sysroot::build_sysroot(
248+
let mut target_compiler = build_sysroot::build_sysroot(
249249
dirs,
250250
channel,
251251
sysroot_kind,
252252
cg_clif_dylib,
253253
bootstrap_host_compiler,
254254
target_triple.clone(),
255255
);
256+
// Rust's build system denies a couple of lints that trigger on several of the test
257+
// projects. Changing the code to fix them is not worth it, so just silence all lints.
258+
target_compiler.rustflags += " --cap-lints=allow";
256259

257260
let runner = TestRunner::new(
258261
dirs.clone(),

0 commit comments

Comments
 (0)