about summary refs log tree commit diff
path: root/tests/codegen/issues/issue-111508-vec-tryinto-array.rs
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2024-09-22 16:42:28 -0700
committerJubilee Young <workingjubilee@gmail.com>2024-09-22 16:46:10 -0700
commitff3a9f4e2ac44fa5b4eab1eb0e00dd6b6298ed14 (patch)
treec8a42b869cf62e84e1f221eb57e3309f9b05c852 /tests/codegen/issues/issue-111508-vec-tryinto-array.rs
parent6c6d210089e4589afee37271862b9f88ba1d7755 (diff)
downloadrust-ff3a9f4e2ac44fa5b4eab1eb0e00dd6b6298ed14.tar.gz
rust-ff3a9f4e2ac44fa5b4eab1eb0e00dd6b6298ed14.zip
tests: Remove spuriously failing vec-tryinto-array codegen test
Diffstat (limited to 'tests/codegen/issues/issue-111508-vec-tryinto-array.rs')
-rw-r--r--tests/codegen/issues/issue-111508-vec-tryinto-array.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/codegen/issues/issue-111508-vec-tryinto-array.rs b/tests/codegen/issues/issue-111508-vec-tryinto-array.rs
deleted file mode 100644
index 6415724b40a..00000000000
--- a/tests/codegen/issues/issue-111508-vec-tryinto-array.rs
+++ /dev/null
@@ -1,22 +0,0 @@
-//@ compile-flags: -O
-// This regress since Rust version 1.72.
-//@ min-llvm-version: 18.1.4
-
-#![crate_type = "lib"]
-
-use std::convert::TryInto;
-
-const N: usize = 24;
-
-// CHECK-LABEL: @example
-// CHECK-NOT: unwrap_failed
-#[no_mangle]
-pub fn example(a: Vec<u8>) -> u8 {
-    if a.len() != 32 {
-        return 0;
-    }
-
-    let a: [u8; 32] = a.try_into().unwrap();
-
-    a[15] + a[N]
-}