]>
git.proxmox.com Git - rustc.git/blob - tests/codegen/issue-27130.rs
5 // CHECK-LABEL: @trim_in_place
7 pub fn trim_in_place(a
: &mut &[u8]) {
8 while a
.first() == Some(&42) {
9 // CHECK-NOT: slice_index_order_fail
14 // CHECK-LABEL: @trim_in_place2
16 pub fn trim_in_place2(a
: &mut &[u8]) {
17 while let Some(&42) = a
.first() {
18 // CHECK-NOT: slice_index_order_fail