]>
git.proxmox.com Git - rustc.git/blob - src/test/codegen/issue-27130.rs
2 // min-llvm-version: 11.0
6 // CHECK-LABEL: @trim_in_place
8 pub fn trim_in_place(a
: &mut &[u8]) {
9 while a
.first() == Some(&42) {
10 // CHECK-NOT: slice_index_order_fail
15 // CHECK-LABEL: @trim_in_place2
17 pub fn trim_in_place2(a
: &mut &[u8]) {
18 while let Some(&42) = a
.first() {
19 // CHECK-NOT: slice_index_order_fail