Pass --cap-lints=allow to tests

This commit is contained in:
bjorn3 2023-04-17 09:32:07 +00:00
parent d16ba45fe4
commit 521d937116

View File

@ -245,7 +245,7 @@ pub(crate) fn run_tests(
let run_extended_sysroot = config::get_bool("testsuite.extended_sysroot"); let run_extended_sysroot = config::get_bool("testsuite.extended_sysroot");
if run_base_sysroot || run_extended_sysroot { if run_base_sysroot || run_extended_sysroot {
let target_compiler = build_sysroot::build_sysroot( let mut target_compiler = build_sysroot::build_sysroot(
dirs, dirs,
channel, channel,
sysroot_kind, sysroot_kind,
@ -253,6 +253,9 @@ pub(crate) fn run_tests(
bootstrap_host_compiler, bootstrap_host_compiler,
target_triple.clone(), target_triple.clone(),
); );
// Rust's build system denies a couple of lints that trigger on several of the test
// projects. Changing the code to fix them is not worth it, so just silence all lints.
target_compiler.rustflags += " --cap-lints=allow";
let runner = TestRunner::new( let runner = TestRunner::new(
dirs.clone(), dirs.clone(),