diff options
| author | bors <bors@rust-lang.org> | 2024-09-23 04:56:10 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-09-23 04:56:10 +0000 |
| commit | 702987f75b74f789ba227ee04a3d7bb1680c2309 (patch) | |
| tree | a7056e093f9d3596604c4bf561fc55475007883a /tests/codegen/issues | |
| parent | 66b0b29e65c77e5801c308e725a233c0728df300 (diff) | |
| parent | 693269b2be59f36d1c95a6e57ee44b2002dc65e9 (diff) | |
| download | rust-702987f75b74f789ba227ee04a3d7bb1680c2309.tar.gz rust-702987f75b74f789ba227ee04a3d7bb1680c2309.zip | |
Auto merge of #130732 - matthiaskrgr:rollup-ke1j314, r=matthiaskrgr
Rollup of 10 pull requests
Successful merges:
- #129550 (Add str.as_str() for easy Deref to string slices)
- #130344 (Handle unsized consts with type `str` in v0 symbol mangling)
- #130659 (Support `char::encode_utf16` in const scenarios.)
- #130705 (No longer mark RTN as incomplete)
- #130712 (Don't call `ty::Const::normalize` in error reporting)
- #130713 (Mark `u8::make_ascii_uppercase` and `u8::make_ascii_lowercase` as const.)
- #130714 (Introduce `structurally_normalize_const`, use it in `rustc_hir_typeck`)
- #130715 (Replace calls to `ty::Const::{try_}eval` in mir build/pattern analysis)
- #130723 (Add test for `available_parallelism()`)
- #130726 (tests: Remove spuriously failing vec-tryinto-array codegen test)
r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'tests/codegen/issues')
| -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] -} |
