Auto merge of #27723 - mystor:vecdeque_drain_range, r=bluss

This is a WIP PR for my implementation of drain over the VecDeque data structure supporting ranges. It brings the VecDeque drain implementation in line with Vec's.

Tests haven't been written for the new function yet.
This commit is contained in:
bors 2015-10-20 11:55:17 +00:00
commit e7eb7d58f9
3 changed files with 280 additions and 19 deletions

View file

@ -93,7 +93,8 @@ fn main() {
}
all_sync_send!(EnumSet::<Foo>::new(), iter);
all_sync_send!(VecDeque::<usize>::new(), iter, iter_mut, drain, into_iter);
all_sync_send!(VecDeque::<usize>::new(), iter, iter_mut, into_iter);
is_sync_send!(VecDeque::<usize>::new(), drain(..));
all_sync_send!(Vec::<usize>::new(), into_iter);
is_sync_send!(Vec::<usize>::new(), drain(..));