@@ -1117,55 +1117,6 @@ impl<'a, T: ?Sized> DerefMut for &'a mut T {
1117
1117
#[ lang="fn" ]
1118
1118
#[ unstable( feature = "core" ,
1119
1119
reason = "uncertain about variadic generics, input versus associated types" ) ]
1120
- #[ cfg( stage0) ]
1121
- pub trait Fn < Args , Output > {
1122
- /// This is called when the call operator is used.
1123
- extern "rust-call" fn call ( & self , args : Args ) -> Output ;
1124
- }
1125
-
1126
- /// A version of the call operator that takes a mutable receiver.
1127
- #[ lang="fn_mut" ]
1128
- #[ unstable( feature = "core" ,
1129
- reason = "uncertain about variadic generics, input versus associated types" ) ]
1130
- #[ cfg( stage0) ]
1131
- pub trait FnMut < Args , Output > {
1132
- /// This is called when the call operator is used.
1133
- extern "rust-call" fn call_mut ( & mut self , args : Args ) -> Output ;
1134
- }
1135
-
1136
- /// A version of the call operator that takes a by-value receiver.
1137
- #[ lang="fn_once" ]
1138
- #[ unstable( feature = "core" ,
1139
- reason = "uncertain about variadic generics, input versus associated types" ) ]
1140
- #[ cfg( stage0) ]
1141
- pub trait FnOnce < Args , Output > {
1142
- /// This is called when the call operator is used.
1143
- extern "rust-call" fn call_once ( self , args : Args ) -> Output ;
1144
- }
1145
-
1146
- #[ cfg( stage0) ]
1147
- impl < F : ?Sized , A , R > FnMut < A , R > for F
1148
- where F : Fn < A , R >
1149
- {
1150
- extern "rust-call" fn call_mut ( & mut self , args : A ) -> R {
1151
- self . call ( args)
1152
- }
1153
- }
1154
-
1155
- #[ cfg( stage0) ]
1156
- impl < F , A , R > FnOnce < A , R > for F
1157
- where F : FnMut < A , R >
1158
- {
1159
- extern "rust-call" fn call_once ( mut self , args : A ) -> R {
1160
- self . call_mut ( args)
1161
- }
1162
- }
1163
-
1164
- /// A version of the call operator that takes an immutable receiver.
1165
- #[ lang="fn" ]
1166
- #[ unstable( feature = "core" ,
1167
- reason = "uncertain about variadic generics, input versus associated types" ) ]
1168
- #[ cfg( not( stage0) ) ]
1169
1120
pub trait Fn < Args > {
1170
1121
type Output ;
1171
1122
@@ -1177,7 +1128,6 @@ pub trait Fn<Args> {
1177
1128
#[ lang="fn_mut" ]
1178
1129
#[ unstable( feature = "core" ,
1179
1130
reason = "uncertain about variadic generics, input versus associated types" ) ]
1180
- #[ cfg( not( stage0) ) ]
1181
1131
pub trait FnMut < Args > {
1182
1132
type Output ;
1183
1133
@@ -1189,15 +1139,13 @@ pub trait FnMut<Args> {
1189
1139
#[ lang="fn_once" ]
1190
1140
#[ unstable( feature = "core" ,
1191
1141
reason = "uncertain about variadic generics, input versus associated types" ) ]
1192
- #[ cfg( not( stage0) ) ]
1193
1142
pub trait FnOnce < Args > {
1194
1143
type Output ;
1195
1144
1196
1145
/// This is called when the call operator is used.
1197
1146
extern "rust-call" fn call_once ( self , args : Args ) -> Self :: Output ;
1198
1147
}
1199
1148
1200
- #[ cfg( not( stage0) ) ]
1201
1149
impl < F : ?Sized , A > FnMut < A > for F
1202
1150
where F : Fn < A >
1203
1151
{
@@ -1208,7 +1156,6 @@ impl<F: ?Sized, A> FnMut<A> for F
1208
1156
}
1209
1157
}
1210
1158
1211
- #[ cfg( not( stage0) ) ]
1212
1159
impl < F , A > FnOnce < A > for F
1213
1160
where F : FnMut < A >
1214
1161
{
0 commit comments