@@ -700,7 +700,7 @@ impl<I: FusedIterator + ?Sized> FusedIterator for Box<I> {}
700
700
impl < A , F : FnOnce < A > + ?Sized > FnOnce < A > for Box < F > {
701
701
type Output = <F as FnOnce < A > >:: Output ;
702
702
703
- default extern "rust-call" fn call_once ( self , args : A ) -> Self :: Output {
703
+ extern "rust-call" fn call_once ( self , args : A ) -> Self :: Output {
704
704
<F as FnOnce < A > >:: call_once ( * self , args)
705
705
}
706
706
}
@@ -777,22 +777,6 @@ impl<A, F> FnBox<A> for F
777
777
}
778
778
}
779
779
780
- #[ unstable( feature = "fnbox" ,
781
- reason = "will be deprecated if and when `Box<FnOnce>` becomes usable" , issue = "28796" ) ]
782
- impl < A , R > FnOnce < A > for Box < dyn FnBox < A , Output = R > + ' _ > {
783
- extern "rust-call" fn call_once ( self , args : A ) -> R {
784
- self . call_box ( args)
785
- }
786
- }
787
-
788
- #[ unstable( feature = "fnbox" ,
789
- reason = "will be deprecated if and when `Box<FnOnce>` becomes usable" , issue = "28796" ) ]
790
- impl < A , R > FnOnce < A > for Box < dyn FnBox < A , Output = R > + Send + ' _ > {
791
- extern "rust-call" fn call_once ( self , args : A ) -> R {
792
- self . call_box ( args)
793
- }
794
- }
795
-
796
780
#[ unstable( feature = "coerce_unsized" , issue = "27732" ) ]
797
781
impl < T : ?Sized + Unsize < U > , U : ?Sized > CoerceUnsized < Box < U > > for Box < T > { }
798
782
0 commit comments