X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibtest%2Flib.rs;h=810a98e4a014cb4f54fbfefc28352286cce9f131;hb=760a98fb5e1c964efbe5cb36710fff892b547c51;hp=c6afa90e4ee614d5c85d2961c8b1bff7424d955f;hpb=b982867a7349f84c17317599b59aeb5a7d8a83be;p=rust.git diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index c6afa90e4ee..810a98e4a01 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -22,7 +22,6 @@ #![unstable(feature = "test", issue = "27812")] #![doc(html_root_url = "https://doc.rust-lang.org/nightly/", test(attr(deny(warnings))))] #![feature(asm)] -#![feature(fnbox)] #![cfg_attr(any(unix, target_os = "cloudabi"), feature(libc, rustc_private))] #![feature(nll)] #![feature(set_stdio)] @@ -37,12 +36,13 @@ use term; // FIXME(#54291): rustc and/or LLVM don't yet support building with panic-unwind -// on aarch64-pc-windows-msvc, so we don't link libtest against -// libunwind (for the time being), even though it means that -// libtest won't be fully functional on this platform. +// on aarch64-pc-windows-msvc, or thumbv7a-pc-windows-msvc +// so we don't link libtest against libunwind (for the time being) +// even though it means that libtest won't be fully functional on +// these platforms. // // See also: https://github.com/rust-lang/rust/issues/54190#issuecomment-422904437 -#[cfg(not(all(windows, target_arch = "aarch64")))] +#[cfg(not(all(windows, any(target_arch = "aarch64", target_arch = "arm"))))] extern crate panic_unwind; pub use self::ColorConfig::*; @@ -55,7 +55,6 @@ use std::any::Any; use std::borrow::Cow; -use std::boxed::FnBox; use std::cmp; use std::collections::BTreeMap; use std::env; @@ -173,7 +172,7 @@ pub trait TDynBenchFn: Send { pub enum TestFn { StaticTestFn(fn()), StaticBenchFn(fn(&mut Bencher)), - DynTestFn(Box), + DynTestFn(Box), DynBenchFn(Box), } @@ -1446,7 +1445,7 @@ fn run_test_inner( desc: TestDesc, monitor_ch: Sender, nocapture: bool, - testfn: Box, + testfn: Box, concurrency: Concurrent, ) { // Buffer for capturing standard I/O @@ -1537,7 +1536,7 @@ fn calc_result(desc: &TestDesc, task_result: Result<(), Box>) -> if desc.allow_fail { TrAllowedFail } else { - TrFailedMsg(format!("Panic did not include expected string '{}'", msg)) + TrFailedMsg(format!("panic did not include expected string '{}'", msg)) } } } @@ -1891,7 +1890,7 @@ fn f() { panic!("an error message"); } let expected = "foobar"; - let failed_msg = "Panic did not include expected string"; + let failed_msg = "panic did not include expected string"; let desc = TestDescAndFn { desc: TestDesc { name: StaticTestName("whatever"),