about summary refs log tree commit diff
path: root/src/test/codegen/vec-shrink-panic.rs
AgeCommit message (Collapse)AuthorLines
2021-08-05Make vec-shrink-panic test compatible with v0 manglingTomasz Miąsko-28/+0
The v0 mangling includes an instantiating crate in a mangled name, which crates a false positive match for a word `panic`. Rename crate name / test case to avoid the issue.
2021-01-26shrink_to shouldn't panic on len greater than capacityThom Wiggers-8/+0
2020-11-12Fix test checking that into_boxed_slice does not panicTomasz Miąsko-2/+2
The memory allocation in vec might panic in the case of capacity overflow. Move the allocation outside the function to fix the test.
2020-08-18Don't panic in Vec::shrink_to_fitJosh Stone-0/+36