2 // ignore-debug: the debug assertions get in the way
6 // Make sure that `Vec::shrink_to_fit` never emits panics via `RawVec::shrink_to_fit`,
7 // "Tried to shrink to a larger capacity", because the length is *always* <= capacity.
9 // CHECK-LABEL: @shrink_to_fit
11 pub fn shrink_to_fit(vec: &mut Vec<u32>) {
16 // CHECK-LABEL: @issue71861
18 pub fn issue71861(vec: Vec<u32>) -> Box<[u32]> {
20 vec.into_boxed_slice()
23 // CHECK-LABEL: @issue75636
25 pub fn issue75636<'a>(iter: &[&'a str]) -> Box<[&'a str]> {
27 iter.iter().copied().collect()