File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ use crate::panic::Location;
2424#[ stable( feature = "panic_hooks" , since = "1.10.0" ) ]
2525#[ derive( Debug ) ]
2626pub struct PanicInfo < ' a > {
27- payload : & ' a ( dyn Any + Send ) ,
27+ payload : & ' a dyn Any ,
2828 message : Option < & ' a fmt:: Arguments < ' a > > ,
2929 location : & ' a Location < ' a > ,
3030 can_unwind : bool ,
@@ -81,7 +81,7 @@ impl<'a> PanicInfo<'a> {
8181 /// ```
8282 #[ must_use]
8383 #[ stable( feature = "panic_hooks" , since = "1.10.0" ) ]
84- pub fn payload ( & self ) -> & ( dyn Any + Send ) {
84+ pub fn payload ( & self ) -> & dyn Any {
8585 self . payload
8686 }
8787
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ pub enum TestResult {
2727/// and associated data.
2828pub fn calc_result < ' a > (
2929 desc : & TestDesc ,
30- task_result : Result < ( ) , & ' a ( dyn Any + ' static + Send ) > ,
30+ task_result : Result < ( ) , & ' a dyn Any > ,
3131 time_opts : & Option < time:: TestTimeOptions > ,
3232 exec_time : & Option < time:: TestExecTime > ,
3333) -> TestResult {
You can’t perform that action at this time.
0 commit comments