@@ -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) ) ]
11861137pub trait Fn < Args > {
11871138 type Output ;
11881139
@@ -1194,7 +1145,6 @@ pub trait Fn<Args> {
11941145#[ lang="fn_mut" ]
11951146#[ unstable( feature = "core" ,
11961147 reason = "uncertain about variadic generics, input versus associated types" ) ]
1197- #[ cfg( not( stage0) ) ]
11981148pub trait FnMut < Args > {
11991149 type Output ;
12001150
@@ -1206,15 +1156,13 @@ pub trait FnMut<Args> {
12061156#[ lang="fn_once" ]
12071157#[ unstable( feature = "core" ,
12081158 reason = "uncertain about variadic generics, input versus associated types" ) ]
1209- #[ cfg( not( stage0) ) ]
12101159pub trait FnOnce < Args > {
12111160 type Output ;
12121161
12131162 /// This is called when the call operator is used.
12141163 extern "rust-call" fn call_once ( self , args : Args ) -> Self :: Output ;
12151164}
12161165
1217- #[ cfg( not( stage0) ) ]
12181166impl < F : ?Sized , A > FnMut < A > for F
12191167 where F : Fn < A >
12201168{
@@ -1225,7 +1173,6 @@ impl<F: ?Sized, A> FnMut<A> for F
12251173 }
12261174}
12271175
1228- #[ cfg( not( stage0) ) ]
12291176impl < F , A > FnOnce < A > for F
12301177 where F : FnMut < A >
12311178{
0 commit comments