@@ -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
pub trait Fn < Args > {
1187
1138
type Output ;
1188
1139
@@ -1194,7 +1145,6 @@ pub trait Fn<Args> {
1194
1145
#[ lang="fn_mut" ]
1195
1146
#[ unstable( feature = "core" ,
1196
1147
reason = "uncertain about variadic generics, input versus associated types" ) ]
1197
- #[ cfg( not( stage0) ) ]
1198
1148
pub trait FnMut < Args > {
1199
1149
type Output ;
1200
1150
@@ -1206,15 +1156,13 @@ pub trait FnMut<Args> {
1206
1156
#[ lang="fn_once" ]
1207
1157
#[ unstable( feature = "core" ,
1208
1158
reason = "uncertain about variadic generics, input versus associated types" ) ]
1209
- #[ cfg( not( stage0) ) ]
1210
1159
pub trait FnOnce < Args > {
1211
1160
type Output ;
1212
1161
1213
1162
/// This is called when the call operator is used.
1214
1163
extern "rust-call" fn call_once ( self , args : Args ) -> Self :: Output ;
1215
1164
}
1216
1165
1217
- #[ cfg( not( stage0) ) ]
1218
1166
impl < F : ?Sized , A > FnMut < A > for F
1219
1167
where F : Fn < A >
1220
1168
{
@@ -1225,7 +1173,6 @@ impl<F: ?Sized, A> FnMut<A> for F
1225
1173
}
1226
1174
}
1227
1175
1228
- #[ cfg( not( stage0) ) ]
1229
1176
impl < F , A > FnOnce < A > for F
1230
1177
where F : FnMut < A >
1231
1178
{
0 commit comments