]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #81335 - thomwiggers:no-panic-shrink-to, r=Mark-Simulacrum
authorbors <bors@rust-lang.org>
Wed, 27 Jan 2021 18:36:32 +0000 (18:36 +0000)
committerbors <bors@rust-lang.org>
Wed, 27 Jan 2021 18:36:32 +0000 (18:36 +0000)
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.


Trivial merge