@@ -1134,55 +1134,6 @@ impl<'a, T: ?Sized> DerefMut for &'a mut T {
11341134#[ lang="fn" ]
11351135#[ unstable( feature = "core" ,
11361136 reason = "uncertain about variadic generics, input versus associated types" ) ]
1137- #[ cfg( stage0) ]
1138- pub trait Fn < Args , Output > {
1139- /// This is called when the call operator is used.
1140- extern "rust-call" fn call ( & self , args : Args ) -> Output ;
1141- }
1142-
1143- /// A version of the call operator that takes a mutable receiver.
1144- #[ lang="fn_mut" ]
1145- #[ unstable( feature = "core" ,
1146- reason = "uncertain about variadic generics, input versus associated types" ) ]
1147- #[ cfg( stage0) ]
1148- pub trait FnMut < Args , Output > {
1149- /// This is called when the call operator is used.
1150- extern "rust-call" fn call_mut ( & mut self , args : Args ) -> Output ;
1151- }
1152-
1153- /// A version of the call operator that takes a by-value receiver.
1154- #[ lang="fn_once" ]
1155- #[ unstable( feature = "core" ,
1156- reason = "uncertain about variadic generics, input versus associated types" ) ]
1157- #[ cfg( stage0) ]
1158- pub trait FnOnce < Args , Output > {
1159- /// This is called when the call operator is used.
1160- extern "rust-call" fn call_once ( self , args : Args ) -> Output ;
1161- }
1162-
1163- #[ cfg( stage0) ]
1164- impl < F : ?Sized , A , R > FnMut < A , R > for F
1165- where F : Fn < A , R >
1166- {
1167- extern "rust-call" fn call_mut ( & mut self , args : A ) -> R {
1168- self . call ( args)
1169- }
1170- }
1171-
1172- #[ cfg( stage0) ]
1173- impl < F , A , R > FnOnce < A , R > for F
1174- where F : FnMut < A , R >
1175- {
1176- extern "rust-call" fn call_once ( mut self , args : A ) -> R {
1177- self . call_mut ( args)
1178- }
1179- }
1180-
1181- /// A version of the call operator that takes an immutable receiver.
1182- #[ lang="fn" ]
1183- #[ unstable( feature = "core" ,
1184- reason = "uncertain about variadic generics, input versus associated types" ) ]
1185- #[ cfg( not( stage0) ) ]
11861137#[ rustc_paren_sugar]
11871138pub trait Fn < Args > {
11881139 type Output ;
@@ -1195,7 +1146,6 @@ pub trait Fn<Args> {
11951146#[ lang="fn_mut" ]
11961147#[ unstable( feature = "core" ,
11971148 reason = "uncertain about variadic generics, input versus associated types" ) ]
1198- #[ cfg( not( stage0) ) ]
11991149#[ rustc_paren_sugar]
12001150pub trait FnMut < Args > {
12011151 type Output ;
@@ -1208,7 +1158,6 @@ pub trait FnMut<Args> {
12081158#[ lang="fn_once" ]
12091159#[ unstable( feature = "core" ,
12101160 reason = "uncertain about variadic generics, input versus associated types" ) ]
1211- #[ cfg( not( stage0) ) ]
12121161#[ rustc_paren_sugar]
12131162pub trait FnOnce < Args > {
12141163 type Output ;
@@ -1217,7 +1166,6 @@ pub trait FnOnce<Args> {
12171166 extern "rust-call" fn call_once ( self , args : Args ) -> Self :: Output ;
12181167}
12191168
1220- #[ cfg( not( stage0) ) ]
12211169impl < F : ?Sized , A > FnMut < A > for F
12221170 where F : Fn < A >
12231171{
@@ -1228,7 +1176,6 @@ impl<F: ?Sized, A> FnMut<A> for F
12281176 }
12291177}
12301178
1231- #[ cfg( not( stage0) ) ]
12321179impl < F , A > FnOnce < A > for F
12331180 where F : FnMut < A >
12341181{
0 commit comments