about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/tests.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-12-03 04:14:07 +0000
committerbors <bors@rust-lang.org>2021-12-03 04:14:07 +0000
commit190367ba2ef1d279004b8372cf022b5fc96145dd (patch)
treef6128e18241f41eed7effa21ad74b8c879618dda /compiler/rustc_mir_transform/src/coverage/tests.rs
parentff23ad3179014ba258f2b540fb39dd0f26852b7a (diff)
parent29f5c98a1737b4fd86cd56ebbc5e1a5cab68d9ca (diff)
downloadrust-190367ba2ef1d279004b8372cf022b5fc96145dd.tar.gz
rust-190367ba2ef1d279004b8372cf022b5fc96145dd.zip
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`.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/tests.rs')
0 files changed, 0 insertions, 0 deletions