Skip to content

Commit 8acf0c2

Browse files
committed
Pass --cap-lints=allow to tests
1 parent 3315406 commit 8acf0c2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build_system/tests.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ pub(crate) fn run_tests(
259259
let run_extended_sysroot = config::get_bool("testsuite.extended_sysroot");
260260

261261
if run_base_sysroot || run_extended_sysroot {
262-
let target_compiler = build_sysroot::build_sysroot(
262+
let mut target_compiler = build_sysroot::build_sysroot(
263263
dirs,
264264
channel,
265265
sysroot_kind,
@@ -268,6 +268,9 @@ pub(crate) fn run_tests(
268268
rustup_toolchain_name,
269269
target_triple.clone(),
270270
);
271+
// Rust's build system denies a couple of lints that trigger on several of the test
272+
// projects. Changing the code to fix them is not worth it, so just silence all lints.
273+
target_compiler.rustflags += " --cap-lints=allow";
271274

272275
let runner = TestRunner::new(
273276
dirs.clone(),

0 commit comments

Comments
 (0)