@@ -231,7 +231,7 @@ macro_rules! impl_error_chain_processed {
231
231
232
232
fn with_chain<E , K >( error: E , kind: K )
233
233
-> Self
234
- where E : :: std:: error:: Error + Send + ' static ,
234
+ where E : :: std:: error:: Error + Send + Sync + ' static ,
235
235
K : Into <Self :: ErrorKind >
236
236
{
237
237
Self :: with_chain( error, kind)
@@ -273,15 +273,15 @@ macro_rules! impl_error_chain_processed {
273
273
/// Constructs a chained error from another error and a kind, and generates a backtrace.
274
274
pub fn with_chain<E , K >( error: E , kind: K )
275
275
-> $error_name
276
- where E : :: std:: error:: Error + Send + ' static ,
276
+ where E : :: std:: error:: Error + Send + Sync + ' static ,
277
277
K : Into <$error_kind_name>
278
278
{
279
279
$error_name:: with_boxed_chain( Box :: new( error) , kind)
280
280
}
281
281
282
282
/// Construct a chained error from another boxed error and a kind, and generates a backtrace
283
283
#[ allow( unknown_lints, bare_trait_objects) ]
284
- pub fn with_boxed_chain<K >( error: Box <:: std:: error:: Error + Send >, kind: K )
284
+ pub fn with_boxed_chain<K >( error: Box <:: std:: error:: Error + Send + Sync >, kind: K )
285
285
-> $error_name
286
286
where K : Into <$error_kind_name>
287
287
{
@@ -426,7 +426,7 @@ macro_rules! impl_error_chain_processed {
426
426
EK : Into <$error_kind_name>;
427
427
}
428
428
429
- impl <T , E > $result_ext_name<T > for :: std:: result:: Result <T , E > where E : :: std:: error:: Error + Send + ' static {
429
+ impl <T , E > $result_ext_name<T > for :: std:: result:: Result <T , E > where E : :: std:: error:: Error + Send + Sync + ' static {
430
430
fn chain_err<F , EK >( self , callback: F ) -> :: std:: result:: Result <T , $error_name>
431
431
where F : FnOnce ( ) -> EK ,
432
432
EK : Into <$error_kind_name> {
@@ -545,7 +545,7 @@ macro_rules! impl_extract_backtrace {
545
545
$( [ $link_error_path: path, $( #[ $meta_links: meta] ) * ] ) * ) => {
546
546
#[ allow( unknown_lints, renamed_and_removed_lints, bare_trait_objects) ]
547
547
#[ allow( unused_doc_comment, unused_doc_comments) ]
548
- fn extract_backtrace( e: & ( :: std:: error:: Error + Send + ' static ) )
548
+ fn extract_backtrace( e: & ( :: std:: error:: Error + Send + Sync + ' static ) )
549
549
-> Option <$crate:: InternalBacktrace > {
550
550
if let Some ( e) = e. downcast_ref:: <$error_name>( ) {
551
551
return Some ( e. 1 . backtrace. clone( ) ) ;
0 commit comments