@@ -231,7 +231,7 @@ macro_rules! impl_error_chain_processed {
231231
232232 fn with_chain<E , K >( error: E , kind: K )
233233 -> Self
234- where E : :: std:: error:: Error + Send + ' static ,
234+ where E : :: std:: error:: Error + Send + Sync + ' static ,
235235 K : Into <Self :: ErrorKind >
236236 {
237237 Self :: with_chain( error, kind)
@@ -273,15 +273,15 @@ macro_rules! impl_error_chain_processed {
273273 /// Constructs a chained error from another error and a kind, and generates a backtrace.
274274 pub fn with_chain<E , K >( error: E , kind: K )
275275 -> $error_name
276- where E : :: std:: error:: Error + Send + ' static ,
276+ where E : :: std:: error:: Error + Send + Sync + ' static ,
277277 K : Into <$error_kind_name>
278278 {
279279 $error_name:: with_boxed_chain( Box :: new( error) , kind)
280280 }
281281
282282 /// Construct a chained error from another boxed error and a kind, and generates a backtrace
283283 #[ 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 )
285285 -> $error_name
286286 where K : Into <$error_kind_name>
287287 {
@@ -426,7 +426,7 @@ macro_rules! impl_error_chain_processed {
426426 EK : Into <$error_kind_name>;
427427 }
428428
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 {
430430 fn chain_err<F , EK >( self , callback: F ) -> :: std:: result:: Result <T , $error_name>
431431 where F : FnOnce ( ) -> EK ,
432432 EK : Into <$error_kind_name> {
@@ -545,7 +545,7 @@ macro_rules! impl_extract_backtrace {
545545 $( [ $link_error_path: path, $( #[ $meta_links: meta] ) * ] ) * ) => {
546546 #[ allow( unknown_lints, renamed_and_removed_lints, bare_trait_objects) ]
547547 #[ 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 ) )
549549 -> Option <$crate:: InternalBacktrace > {
550550 if let Some ( e) = e. downcast_ref:: <$error_name>( ) {
551551 return Some ( e. 1 . backtrace. clone( ) ) ;
0 commit comments