File tree 6 files changed +6
-25
lines changed
library/core/src/iter/adapters
6 files changed +6
-25
lines changed Original file line number Diff line number Diff line change @@ -283,11 +283,7 @@ where
283
283
}
284
284
285
285
#[ stable( feature = "default_iters" , since = "CURRENT_RUSTC_VERSION" ) ]
286
- impl < A , B > Default for Chain < A , B >
287
- where
288
- A : Iterator + Default ,
289
- B : Iterator + Default ,
290
- {
286
+ impl < A : Default , B : Default > Default for Chain < A , B > {
291
287
/// Creates a `Chain` from the default values for `A` and `B`.
292
288
///
293
289
/// ```
Original file line number Diff line number Diff line change @@ -155,11 +155,7 @@ where
155
155
}
156
156
157
157
#[ stable( feature = "default_iters" , since = "CURRENT_RUSTC_VERSION" ) ]
158
- impl < ' a , I , T : ' a > Default for Cloned < I >
159
- where
160
- I : Default + Iterator < Item = & ' a T > ,
161
- T : Clone ,
162
- {
158
+ impl < I : Default > Default for Cloned < I > {
163
159
/// Creates a `Cloned` iterator from the default value of `I`
164
160
/// ```
165
161
/// # use core::slice;
Original file line number Diff line number Diff line change @@ -242,11 +242,7 @@ where
242
242
}
243
243
244
244
#[ stable( feature = "default_iters" , since = "CURRENT_RUSTC_VERSION" ) ]
245
- impl < ' a , I , T : ' a > Default for Copied < I >
246
- where
247
- I : Default + Iterator < Item = & ' a T > ,
248
- T : Copy ,
249
- {
245
+ impl < I : Default > Default for Copied < I > {
250
246
/// Creates a `Copied` iterator from the default value of `I`
251
247
/// ```
252
248
/// # use core::slice;
Original file line number Diff line number Diff line change @@ -266,10 +266,7 @@ where
266
266
unsafe impl < I : InPlaceIterable > InPlaceIterable for Enumerate < I > { }
267
267
268
268
#[ stable( feature = "default_iters" , since = "CURRENT_RUSTC_VERSION" ) ]
269
- impl < I > Default for Enumerate < I >
270
- where
271
- I : Iterator + Default ,
272
- {
269
+ impl < I : Default > Default for Enumerate < I > {
273
270
/// Creates an `Enumerate` iterator from the default value of `I`
274
271
/// ```
275
272
/// # use core::slice;
Original file line number Diff line number Diff line change @@ -305,8 +305,7 @@ where
305
305
#[ stable( feature = "default_iters" , since = "CURRENT_RUSTC_VERSION" ) ]
306
306
impl < I > Default for Flatten < I >
307
307
where
308
- I : Iterator + Default ,
309
- <I as Iterator >:: Item : IntoIterator ,
308
+ I : Default + Iterator < Item : IntoIterator > ,
310
309
{
311
310
/// Creates a `Flatten` iterator from the default value of `I`.
312
311
///
Original file line number Diff line number Diff line change @@ -137,10 +137,7 @@ impl<I> FusedIterator for Rev<I> where I: FusedIterator + DoubleEndedIterator {}
137
137
unsafe impl < I > TrustedLen for Rev < I > where I : TrustedLen + DoubleEndedIterator { }
138
138
139
139
#[ stable( feature = "default_iters" , since = "CURRENT_RUSTC_VERSION" ) ]
140
- impl < I > Default for Rev < I >
141
- where
142
- I : Default + Iterator ,
143
- {
140
+ impl < I : Default > Default for Rev < I > {
144
141
/// Creates a `Rev` iterator from the default value of `I`
145
142
/// ```
146
143
/// # use core::slice;
You can’t perform that action at this time.
0 commit comments