diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-09-23 06:45:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-23 06:45:37 +0200 |
| commit | 693269b2be59f36d1c95a6e57ee44b2002dc65e9 (patch) | |
| tree | a7056e093f9d3596604c4bf561fc55475007883a | |
| parent | 004213b77de7bca4b9f9e069ce5f4e2b944360d5 (diff) | |
| parent | ff3a9f4e2ac44fa5b4eab1eb0e00dd6b6298ed14 (diff) | |
| download | rust-693269b2be59f36d1c95a6e57ee44b2002dc65e9.tar.gz rust-693269b2be59f36d1c95a6e57ee44b2002dc65e9.zip | |
Rollup merge of #130726 - workingjubilee:put-the-spurs-to-this-test, r=BoxyUwU
tests: Remove spuriously failing vec-tryinto-array codegen test This has failed more than a couple of times now. It costs real time, money, and energy to deal with this, far more than this test is saving us.
| -rw-r--r-- | tests/codegen/issues/issue-111508-vec-tryinto-array.rs | 22 |
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] -} |
