@@ -1134,55 +1134,6 @@ impl<'a, T: ?Sized> DerefMut for &'a mut T {
1134
1134
#[ lang="fn" ]
1135
1135
#[ unstable( feature = "core" ,
1136
1136
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) ) ]
1186
1137
#[ rustc_paren_sugar]
1187
1138
pub trait Fn < Args > {
1188
1139
type Output ;
@@ -1195,7 +1146,6 @@ pub trait Fn<Args> {
1195
1146
#[ lang="fn_mut" ]
1196
1147
#[ unstable( feature = "core" ,
1197
1148
reason = "uncertain about variadic generics, input versus associated types" ) ]
1198
- #[ cfg( not( stage0) ) ]
1199
1149
#[ rustc_paren_sugar]
1200
1150
pub trait FnMut < Args > {
1201
1151
type Output ;
@@ -1208,7 +1158,6 @@ pub trait FnMut<Args> {
1208
1158
#[ lang="fn_once" ]
1209
1159
#[ unstable( feature = "core" ,
1210
1160
reason = "uncertain about variadic generics, input versus associated types" ) ]
1211
- #[ cfg( not( stage0) ) ]
1212
1161
#[ rustc_paren_sugar]
1213
1162
pub trait FnOnce < Args > {
1214
1163
type Output ;
@@ -1217,7 +1166,6 @@ pub trait FnOnce<Args> {
1217
1166
extern "rust-call" fn call_once ( self , args : Args ) -> Self :: Output ;
1218
1167
}
1219
1168
1220
- #[ cfg( not( stage0) ) ]
1221
1169
impl < F : ?Sized , A > FnMut < A > for F
1222
1170
where F : Fn < A >
1223
1171
{
@@ -1228,7 +1176,6 @@ impl<F: ?Sized, A> FnMut<A> for F
1228
1176
}
1229
1177
}
1230
1178
1231
- #[ cfg( not( stage0) ) ]
1232
1179
impl < F , A > FnOnce < A > for F
1233
1180
where F : FnMut < A >
1234
1181
{
0 commit comments