File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 032804bf68e2ac13add895206f2173409acff836
2
+ refs/heads/master: f9b70acfd4167f5911c1be4e2dc960c370adb266
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5
5
refs/heads/try: 1864973ae17213c5a58c4dd3f9af6d1b6c7d2e05
Original file line number Diff line number Diff line change @@ -1429,7 +1429,7 @@ impl<T> FromIterator<T> for Vec<T> {
1429
1429
vector
1430
1430
}
1431
1431
} ;
1432
- vector. extend ( iterable ) ;
1432
+ vector. extend_desugared ( iterator ) ;
1433
1433
vector
1434
1434
}
1435
1435
}
@@ -1466,9 +1466,14 @@ impl<'a, T> IntoIterator for &'a mut Vec<T> {
1466
1466
1467
1467
#[ unstable( feature = "collections" , reason = "waiting on Extend stability" ) ]
1468
1468
impl < T > Extend < T > for Vec < T > {
1469
+ #[ inline]
1469
1470
fn extend < I : IntoIterator < Item =T > > ( & mut self , iterable : I ) {
1470
- let mut iterator = iterable. into_iter ( ) ;
1471
+ self . extend_desugared ( iterable. into_iter ( ) )
1472
+ }
1473
+ }
1471
1474
1475
+ impl < T > Vec < T > {
1476
+ fn extend_desugared < I : Iterator < Item =T > > ( & mut self , mut iterator : I ) {
1472
1477
// This function should be the moral equivalent of:
1473
1478
//
1474
1479
// for item in iterator {
You can’t perform that action at this time.
0 commit comments