Commit graph

2 commits

Author SHA1 Message Date
Tomasz Miąsko
899d9b9bd5 Fix test checking that into_boxed_slice does not panic
The memory allocation in vec might panic in the case of capacity
overflow. Move the allocation outside the function to fix the test.
2020-11-12 00:00:00 +00:00
Josh Stone
7551f3fbbd Don't panic in Vec::shrink_to_fit 2020-08-18 11:45:40 -07:00