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.
This commit is contained in:
Matthias Krüger 2024-09-23 06:45:37 +02:00 committed by GitHub
commit 693269b2be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]
}