mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-07 08:26:14 +00:00
Trying to shrink_to greater than capacity should be no-op Per the discussion in https://github.com/rust-lang/rust/issues/56431, `shrink_to` shouldn't panic if you try to make a vector shrink to a capacity greater than its current capacity.