rust-lang/rust — pull request #15372 by erickt (2014-07-03 15:50:41+00:00)
Title: Vec::grow should use reserve_additional, Vec::reserve should check against capacity

Two minor tweaks to how `Vec::grow` and `Vec::reserve` works. The first changes `grow` to use `reserve_additional`, which will assert against overflows. The second changes a conditional check in `reserve` to only grow if we need the extra capacity.