mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 13:06:28 +03:00
29f5c98a17
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`.