@@ -401,8 +401,7 @@ fn run_client<A: for<'a, 's> DecodeMut<'a, 's, ()>, R: Encode<()>>(
401
401
}
402
402
403
403
impl Client < fn ( crate :: TokenStream ) -> crate :: TokenStream > {
404
- #[ cfg_attr( not( bootstrap) , rustc_allow_const_fn_unstable( const_fn) ) ]
405
- #[ cfg_attr( bootstrap, allow_internal_unstable( const_fn) ) ]
404
+ #[ rustc_allow_const_fn_unstable( const_fn) ]
406
405
pub const fn expand1 ( f : fn ( crate :: TokenStream ) -> crate :: TokenStream ) -> Self {
407
406
extern "C" fn run (
408
407
bridge : Bridge < ' _ > ,
@@ -415,8 +414,7 @@ impl Client<fn(crate::TokenStream) -> crate::TokenStream> {
415
414
}
416
415
417
416
impl Client < fn ( crate :: TokenStream , crate :: TokenStream ) -> crate :: TokenStream > {
418
- #[ cfg_attr( not( bootstrap) , rustc_allow_const_fn_unstable( const_fn) ) ]
419
- #[ cfg_attr( bootstrap, allow_internal_unstable( const_fn) ) ]
417
+ #[ rustc_allow_const_fn_unstable( const_fn) ]
420
418
pub const fn expand2 (
421
419
f : fn ( crate :: TokenStream , crate :: TokenStream ) -> crate :: TokenStream ,
422
420
) -> Self {
@@ -461,8 +459,7 @@ impl ProcMacro {
461
459
}
462
460
}
463
461
464
- #[ cfg_attr( not( bootstrap) , rustc_allow_const_fn_unstable( const_fn) ) ]
465
- #[ cfg_attr( bootstrap, allow_internal_unstable( const_fn) ) ]
462
+ #[ rustc_allow_const_fn_unstable( const_fn) ]
466
463
pub const fn custom_derive (
467
464
trait_name : & ' static str ,
468
465
attributes : & ' static [ & ' static str ] ,
@@ -471,17 +468,15 @@ impl ProcMacro {
471
468
ProcMacro :: CustomDerive { trait_name, attributes, client : Client :: expand1 ( expand) }
472
469
}
473
470
474
- #[ cfg_attr( not( bootstrap) , rustc_allow_const_fn_unstable( const_fn) ) ]
475
- #[ cfg_attr( bootstrap, allow_internal_unstable( const_fn) ) ]
471
+ #[ rustc_allow_const_fn_unstable( const_fn) ]
476
472
pub const fn attr (
477
473
name : & ' static str ,
478
474
expand : fn ( crate :: TokenStream , crate :: TokenStream ) -> crate :: TokenStream ,
479
475
) -> Self {
480
476
ProcMacro :: Attr { name, client : Client :: expand2 ( expand) }
481
477
}
482
478
483
- #[ cfg_attr( not( bootstrap) , rustc_allow_const_fn_unstable( const_fn) ) ]
484
- #[ cfg_attr( bootstrap, allow_internal_unstable( const_fn) ) ]
479
+ #[ rustc_allow_const_fn_unstable( const_fn) ]
485
480
pub const fn bang (
486
481
name : & ' static str ,
487
482
expand : fn ( crate :: TokenStream ) -> crate :: TokenStream ,
0 commit comments