mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 06:43:20 +03:00
8985f1f97b
Don't reload length in String::push Same as in `Vec::push_mut`, we get `.len()` once at the start since it won't change in the `reserve()` call. Saves reloading the length after the allocation: https://godbolt.org/z/W3G165Gd7