Only apply --cap-lints to the extended_sysroot test suite
This commit is contained in:
parent
72e6f0cc16
commit
a74d6c2125
@ -290,7 +290,7 @@ pub(crate) fn run_tests(
|
|||||||
&& !skip_tests.contains(&"testsuite.extended_sysroot");
|
&& !skip_tests.contains(&"testsuite.extended_sysroot");
|
||||||
|
|
||||||
if run_base_sysroot || run_extended_sysroot {
|
if run_base_sysroot || run_extended_sysroot {
|
||||||
let mut target_compiler = build_sysroot::build_sysroot(
|
let target_compiler = build_sysroot::build_sysroot(
|
||||||
dirs,
|
dirs,
|
||||||
channel,
|
channel,
|
||||||
sysroot_kind,
|
sysroot_kind,
|
||||||
@ -299,11 +299,8 @@ pub(crate) fn run_tests(
|
|||||||
rustup_toolchain_name,
|
rustup_toolchain_name,
|
||||||
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.push("--cap-lints=allow".to_owned());
|
|
||||||
|
|
||||||
let runner = TestRunner::new(
|
let mut runner = TestRunner::new(
|
||||||
dirs.clone(),
|
dirs.clone(),
|
||||||
target_compiler,
|
target_compiler,
|
||||||
use_unstable_features,
|
use_unstable_features,
|
||||||
@ -319,6 +316,9 @@ pub(crate) fn run_tests(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if run_extended_sysroot {
|
if run_extended_sysroot {
|
||||||
|
// 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.
|
||||||
|
runner.target_compiler.rustflags.push("--cap-lints=allow".to_owned());
|
||||||
runner.run_testsuite(EXTENDED_SYSROOT_SUITE);
|
runner.run_testsuite(EXTENDED_SYSROOT_SUITE);
|
||||||
} else {
|
} else {
|
||||||
eprintln!("[SKIP] extended_sysroot tests");
|
eprintln!("[SKIP] extended_sysroot tests");
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#![feature(start, core_intrinsics, alloc_error_handler, lang_items)]
|
#![feature(start, core_intrinsics, alloc_error_handler, lang_items)]
|
||||||
|
#![allow(internal_features)]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
extern crate alloc;
|
extern crate alloc;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
// Test that the simd_f{min,max} intrinsics produce the correct results.
|
// Test that the simd_f{min,max} intrinsics produce the correct results.
|
||||||
|
|
||||||
#![feature(repr_simd, core_intrinsics)]
|
#![feature(repr_simd, core_intrinsics)]
|
||||||
#![allow(non_camel_case_types)]
|
#![allow(internal_features, non_camel_case_types)]
|
||||||
|
|
||||||
#[repr(simd)]
|
#[repr(simd)]
|
||||||
#[derive(Copy, Clone, PartialEq, Debug)]
|
#[derive(Copy, Clone, PartialEq, Debug)]
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#![feature(start, core_intrinsics, lang_items)]
|
#![feature(start, core_intrinsics, lang_items)]
|
||||||
|
#![allow(internal_features)]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
#[cfg_attr(unix, link(name = "c"))]
|
#[cfg_attr(unix, link(name = "c"))]
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
tuple_trait,
|
tuple_trait,
|
||||||
unboxed_closures
|
unboxed_closures
|
||||||
)]
|
)]
|
||||||
|
#![allow(internal_features)]
|
||||||
|
|
||||||
#[cfg(target_arch = "x86_64")]
|
#[cfg(target_arch = "x86_64")]
|
||||||
use std::arch::x86_64::*;
|
use std::arch::x86_64::*;
|
||||||
|
Loading…
Reference in New Issue
Block a user