rust/library/alloc
bors 190367ba2e Auto merge of #91339 - cbarrete:vecdeque-remove-grow-check, r=Mark-Simulacrum
Remove unnecessary check in VecDeque::grow

All callers already check that the buffer is full before calling
`grow()`. This is where it makes the most sense, since `grow()` is
`inline(never)` and we don't want to pay for a function call just for
that check.
It could also be argued that it would be correct to call `grow()` even
if the buffer wasn't full yet.
This change breaks no code since `grow()` is not `pub`.
2021-12-03 04:14:07 +00:00
..
benches Add #[must_use] to remaining alloc functions 2021-10-15 11:46:49 -04:00
src Auto merge of #91339 - cbarrete:vecdeque-remove-grow-check, r=Mark-Simulacrum 2021-12-03 04:14:07 +00:00
tests Fix Iterator::advance_by contract inconsistency 2021-11-19 13:00:23 +01:00
Cargo.toml