@@ -401,6 +401,7 @@ fn run_client<A: for<'a, 's> DecodeMut<'a, 's, ()>, R: Encode<()>>(
401401}
402402
403403impl Client < fn ( crate :: TokenStream ) -> crate :: TokenStream > {
404+ #[ allow_internal_unstable( const_fn) ]
404405 pub const fn expand1 ( f : fn ( crate :: TokenStream ) -> crate :: TokenStream ) -> Self {
405406 extern "C" fn run (
406407 bridge : Bridge < ' _ > ,
@@ -413,6 +414,7 @@ impl Client<fn(crate::TokenStream) -> crate::TokenStream> {
413414}
414415
415416impl Client < fn ( crate :: TokenStream , crate :: TokenStream ) -> crate :: TokenStream > {
417+ #[ allow_internal_unstable( const_fn) ]
416418 pub const fn expand2 (
417419 f : fn ( crate :: TokenStream , crate :: TokenStream ) -> crate :: TokenStream ,
418420 ) -> Self {
@@ -457,6 +459,7 @@ impl ProcMacro {
457459 }
458460 }
459461
462+ #[ allow_internal_unstable( const_fn) ]
460463 pub const fn custom_derive (
461464 trait_name : & ' static str ,
462465 attributes : & ' static [ & ' static str ] ,
@@ -465,13 +468,15 @@ impl ProcMacro {
465468 ProcMacro :: CustomDerive { trait_name, attributes, client : Client :: expand1 ( expand) }
466469 }
467470
471+ #[ allow_internal_unstable( const_fn) ]
468472 pub const fn attr (
469473 name : & ' static str ,
470474 expand : fn ( crate :: TokenStream , crate :: TokenStream ) -> crate :: TokenStream ,
471475 ) -> Self {
472476 ProcMacro :: Attr { name, client : Client :: expand2 ( expand) }
473477 }
474478
479+ #[ allow_internal_unstable( const_fn) ]
475480 pub const fn bang (
476481 name : & ' static str ,
477482 expand : fn ( crate :: TokenStream ) -> crate :: TokenStream ,
0 commit comments