summaryrefslogtreecommitdiffstats
path: root/src/test/codegen/enum-bounds-check-issue-13926.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/codegen/enum-bounds-check-issue-13926.rs')
-rw-r--r--src/test/codegen/enum-bounds-check-issue-13926.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/codegen/enum-bounds-check-issue-13926.rs b/src/test/codegen/enum-bounds-check-issue-13926.rs
index 1aec41d54..b26945bc5 100644
--- a/src/test/codegen/enum-bounds-check-issue-13926.rs
+++ b/src/test/codegen/enum-bounds-check-issue-13926.rs
@@ -13,7 +13,6 @@ pub enum Exception {
// CHECK-LABEL: @access
#[no_mangle]
pub fn access(array: &[usize; 12], exc: Exception) -> usize {
- // 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
array[(exc as u8 - 4) as usize]
}