@@ -576,29 +576,32 @@ mod impls {
576
576
use crate :: marker:: Tuple ;
577
577
578
578
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
579
- impl < A : Tuple , F : ?Sized > Fn < A > for & F
579
+ #[ rustc_const_unstable( feature = "const_fn_trait_ref_impls" , issue = "101803" ) ]
580
+ impl < A : Tuple , F : ?Sized > const Fn < A > for & F
580
581
where
581
- F : Fn < A > ,
582
+ F : ~ const Fn < A > ,
582
583
{
583
584
extern "rust-call" fn call ( & self , args : A ) -> F :: Output {
584
585
( * * self ) . call ( args)
585
586
}
586
587
}
587
588
588
589
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
589
- impl < A : Tuple , F : ?Sized > FnMut < A > for & F
590
+ #[ rustc_const_unstable( feature = "const_fn_trait_ref_impls" , issue = "101803" ) ]
591
+ impl < A : Tuple , F : ?Sized > const FnMut < A > for & F
590
592
where
591
- F : Fn < A > ,
593
+ F : ~ const Fn < A > ,
592
594
{
593
595
extern "rust-call" fn call_mut ( & mut self , args : A ) -> F :: Output {
594
596
( * * self ) . call ( args)
595
597
}
596
598
}
597
599
598
600
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
599
- impl < A : Tuple , F : ?Sized > FnOnce < A > for & F
601
+ #[ rustc_const_unstable( feature = "const_fn_trait_ref_impls" , issue = "101803" ) ]
602
+ impl < A : Tuple , F : ?Sized > const FnOnce < A > for & F
600
603
where
601
- F : Fn < A > ,
604
+ F : ~ const Fn < A > ,
602
605
{
603
606
type Output = F :: Output ;
604
607
@@ -608,19 +611,21 @@ mod impls {
608
611
}
609
612
610
613
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
611
- impl < A : Tuple , F : ?Sized > FnMut < A > for & mut F
614
+ #[ rustc_const_unstable( feature = "const_fn_trait_ref_impls" , issue = "101803" ) ]
615
+ impl < A : Tuple , F : ?Sized > const FnMut < A > for & mut F
612
616
where
613
- F : FnMut < A > ,
617
+ F : ~ const FnMut < A > ,
614
618
{
615
619
extern "rust-call" fn call_mut ( & mut self , args : A ) -> F :: Output {
616
620
( * self ) . call_mut ( args)
617
621
}
618
622
}
619
623
620
624
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
621
- impl < A : Tuple , F : ?Sized > FnOnce < A > for & mut F
625
+ #[ rustc_const_unstable( feature = "const_fn_trait_ref_impls" , issue = "101803" ) ]
626
+ impl < A : Tuple , F : ?Sized > const FnOnce < A > for & mut F
622
627
where
623
- F : FnMut < A > ,
628
+ F : ~ const FnMut < A > ,
624
629
{
625
630
type Output = F :: Output ;
626
631
extern "rust-call" fn call_once ( self , args : A ) -> F :: Output {
0 commit comments