diff --git a/Cargo.lock b/Cargo.lock index f6ee8157b40ef..7b2b79173ce53 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4826,9 +4826,9 @@ dependencies = [ [[package]] name = "tester" -version = "0.9.0" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0639d10d8f4615f223a57275cf40f9bdb7cfbb806bcb7f7cc56e3beb55a576eb" +checksum = "89e8bf7e0eb2dd7b4228cc1b6821fc5114cd6841ae59f652a85488c016091e5f" dependencies = [ "cfg-if", "getopts", diff --git a/library/core/src/panic/panic_info.rs b/library/core/src/panic/panic_info.rs index 06fbe083ca13d..4a399ed21d37b 100644 --- a/library/core/src/panic/panic_info.rs +++ b/library/core/src/panic/panic_info.rs @@ -24,7 +24,7 @@ use crate::panic::Location; #[stable(feature = "panic_hooks", since = "1.10.0")] #[derive(Debug)] pub struct PanicInfo<'a> { - payload: &'a (dyn Any + Send), + payload: &'a dyn Any, message: Option<&'a fmt::Arguments<'a>>, location: &'a Location<'a>, can_unwind: bool, @@ -81,7 +81,7 @@ impl<'a> PanicInfo<'a> { /// ``` #[must_use] #[stable(feature = "panic_hooks", since = "1.10.0")] - pub fn payload(&self) -> &(dyn Any + Send) { + pub fn payload(&self) -> &dyn Any { self.payload } diff --git a/library/test/src/test_result.rs b/library/test/src/test_result.rs index 1da238e3e8c0f..2e758c9280d1c 100644 --- a/library/test/src/test_result.rs +++ b/library/test/src/test_result.rs @@ -27,7 +27,7 @@ pub enum TestResult { /// and associated data. pub fn calc_result<'a>( desc: &TestDesc, - task_result: Result<(), &'a (dyn Any + 'static + Send)>, + task_result: Result<(), &'a dyn Any>, time_opts: &Option, exec_time: &Option, ) -> TestResult { diff --git a/src/tools/clippy/Cargo.toml b/src/tools/clippy/Cargo.toml index 4db15ddb2835c..503b0253ea6c7 100644 --- a/src/tools/clippy/Cargo.toml +++ b/src/tools/clippy/Cargo.toml @@ -28,7 +28,7 @@ termize = "0.1" [dev-dependencies] compiletest_rs = { version = "0.10", features = ["tmp"] } -tester = "0.9" +tester = "0.9.1" regex = "1.5" toml = "0.5" walkdir = "2.3"