]> git.lizzy.rs Git - rust.git/blobdiff - src/test/codegen/enum-bounds-check-derived-idx.rs
Auto merge of #103903 - matthiaskrgr:rollup-r5xcvrp, r=matthiaskrgr
[rust.git] / src / test / codegen / enum-bounds-check-derived-idx.rs
index fe02aeb5f6252924ce56820ea011e3b39287eb2d..aa66c2ed08edb777fc24e53c76b870c99b93026d 100644 (file)
@@ -12,15 +12,13 @@ pub enum Bar {
 // CHECK-LABEL: @lookup_inc
 #[no_mangle]
 pub fn lookup_inc(buf: &[u8; 5], f: Bar) -> u8 {
-    // FIXME: panic check can be removed by adding the assumes back after https://github.com/rust-lang/rust/pull/98332
-    // CHECK: panic_bounds_check
+    // CHECK-NOT: panic_bounds_check
     buf[f as usize + 1]
 }
 
 // CHECK-LABEL: @lookup_dec
 #[no_mangle]
 pub fn lookup_dec(buf: &[u8; 5], f: Bar) -> u8 {
-    // FIXME: panic check can be removed by adding the assumes back after https://github.com/rust-lang/rust/pull/98332
-    // CHECK: panic_bounds_check
+    // CHECK-NOT: panic_bounds_check
     buf[f as usize - 1]
 }