@@ -118,6 +118,7 @@ macro_rules! impl_into_function {
118118 R : $crate:: func:: IntoReturn + $crate:: func:: args:: GetOwnership + $crate:: TypePath ,
119119 F : FnMut ( $( $Arg) ,* ) -> R + ' env,
120120 F : for <' a> FnMut ( $( $Arg:: Item <' a>) ,* ) -> R + ' env,
121+ F : Send + Sync ,
121122 {
122123 fn into_function( mut self ) -> $crate:: func:: DynamicFunction <' env> {
123124 const COUNT : usize = count_tts!( $( $Arg) * ) ;
@@ -166,6 +167,7 @@ macro_rules! impl_into_function {
166167 $( $Arg: $crate:: func:: args:: FromArg + $crate:: func:: args:: GetOwnership + $crate:: TypePath , ) *
167168 F : for <' a> FnMut ( & ' a Receiver , $( $Arg) ,* ) -> & ' a R + ' env,
168169 F : for <' a> FnMut ( & ' a Receiver , $( $Arg:: Item <' a>) ,* ) -> & ' a R + ' env,
170+ F : Send + Sync ,
169171 {
170172 fn into_function( mut self ) -> $crate:: func:: DynamicFunction <' env> {
171173 const COUNT : usize = count_tts!( Receiver $( $Arg) * ) ;
@@ -217,6 +219,7 @@ macro_rules! impl_into_function {
217219 $( $Arg: $crate:: func:: args:: FromArg + $crate:: func:: args:: GetOwnership + $crate:: TypePath , ) *
218220 F : for <' a> FnMut ( & ' a mut Receiver , $( $Arg) ,* ) -> & ' a mut R + ' env,
219221 F : for <' a> FnMut ( & ' a mut Receiver , $( $Arg:: Item <' a>) ,* ) -> & ' a mut R + ' env,
222+ F : Send + Sync ,
220223 {
221224 fn into_function( mut self ) -> $crate:: func:: DynamicFunction <' env> {
222225 const COUNT : usize = count_tts!( Receiver $( $Arg) * ) ;
@@ -268,6 +271,7 @@ macro_rules! impl_into_function {
268271 $( $Arg: $crate:: func:: args:: FromArg + $crate:: func:: args:: GetOwnership + $crate:: TypePath , ) *
269272 F : for <' a> FnMut ( & ' a mut Receiver , $( $Arg) ,* ) -> & ' a R + ' env,
270273 F : for <' a> FnMut ( & ' a mut Receiver , $( $Arg:: Item <' a>) ,* ) -> & ' a R + ' env,
274+ F : Send + Sync ,
271275 {
272276 fn into_function( mut self ) -> $crate:: func:: DynamicFunction <' env> {
273277 const COUNT : usize = count_tts!( Receiver $( $Arg) * ) ;
0 commit comments