From d90508f76130a8a9aaa68521ac1b0e35ea9a236e Mon Sep 17 00:00:00 2001 From: The 8472 Date: Mon, 12 Jun 2023 14:06:24 +0200 Subject: use indexed loop instead of ptr bumping this seems to produce less IR --- tests/codegen/vec-shrink-panik.rs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'tests/codegen') diff --git a/tests/codegen/vec-shrink-panik.rs b/tests/codegen/vec-shrink-panik.rs index 606d68ff3ab..14fef4e2cd5 100644 --- a/tests/codegen/vec-shrink-panik.rs +++ b/tests/codegen/vec-shrink-panik.rs @@ -37,14 +37,6 @@ pub fn issue71861(vec: Vec) -> Box<[u32]> { // CHECK-LABEL: @issue75636 #[no_mangle] pub fn issue75636<'a>(iter: &[&'a str]) -> Box<[&'a str]> { - // CHECK-NOT: panic - - // Call to panic_cannot_unwind in case of double-panic is expected, - // on LLVM 16 and older, but other panics are not. - // old: filter - // old-NEXT: ; call core::panicking::panic_cannot_unwind - // old-NEXT: panic_cannot_unwind - // CHECK-NOT: panic iter.iter().copied().collect() } -- cgit 1.4.1-3-g733a5