Auto merge of #5272 - Phlosioneer:5211-missing-size-hints, r=matklad
authorbors <bors@rust-lang.org>
Mon, 16 Apr 2018 21:10:56 +0000 (21:10 +0000)
committerbors <bors@rust-lang.org>
Mon, 16 Apr 2018 21:10:56 +0000 (21:10 +0000)
Implement size_hint for some iterators

This PR implements size_hints for `Deps`, `DepsNotReplaced`, and `Members`.
These size_hints are used extensively by cargo to allocate Vecs.

`Deps`, `DepsNotReplaced`, and `RcVecIter` also now implement `ExactSizeIterator`.

Closes #5211

1  2 
src/cargo/core/resolver/types.rs
src/cargo/core/workspace.rs

Simple merge
Simple merge