mirror of
https://github.com/openharmony/third_party_rust_rust-smallvec.git
synced 2026-07-20 15:38:21 -04:00
b2335682bc
By skipping the call to `copy` with a zero length. This makes it closer to `push`. This speeds up rustc (which uses `SmallVec` extensively) by 2% on one benchmark. Also clarify the panic condition.