about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/tests.rs
diff options
context:
space:
mode:
authorCédric Barreteau <cbarrete@users.noreply.github.com>2021-11-28 17:59:17 -0500
committerCédric Barreteau <cbarrete@users.noreply.github.com>2021-11-29 21:14:20 -0500
commit29f5c98a1737b4fd86cd56ebbc5e1a5cab68d9ca (patch)
treebca3eef5ac501fc1db275bb3f5b85dad60b9503e /compiler/rustc_mir_transform/src/coverage/tests.rs
parent6db0a0e9a4a2f55b1a85954e114ada0b45c32e45 (diff)
downloadrust-29f5c98a1737b4fd86cd56ebbc5e1a5cab68d9ca.tar.gz
rust-29f5c98a1737b4fd86cd56ebbc5e1a5cab68d9ca.zip
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`.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/tests.rs')
0 files changed, 0 insertions, 0 deletions