summary refs log tree commit diff
path: root/tests/codegen/binary-search-index-no-bound-check.rs
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2023-05-12 21:59:26 -0700
committerScott McMurray <scottmcm@users.noreply.github.com>2023-05-12 21:59:26 -0700
commita9570a34cde550cecf052d92f077bce1165cb3aa (patch)
tree53a030c346681a24b3350b4fb1fd422816fa595d /tests/codegen/binary-search-index-no-bound-check.rs
parent4a59ba4d54a3ec0d8ea1e82b7eeb5c8b0162de04 (diff)
downloadrust-a9570a34cde550cecf052d92f077bce1165cb3aa.tar.gz
rust-a9570a34cde550cecf052d92f077bce1165cb3aa.zip
Stop checking for the absense of something that doesn't exist
A couple of codegen tests are doing
```
// CHECK-NOT: slice_index_len_fail
```

However, that function no longer exists: [the only places](https://github.com/search?q=repo%3Arust-lang%2Frust+slice_index_len_fail&type=code) it occurs in the repo are in those tests.

So this PR updates the tests to check for the absense of the functions that are actually used today to panic for out-of-bounds indexing.
Diffstat (limited to 'tests/codegen/binary-search-index-no-bound-check.rs')
-rw-r--r--tests/codegen/binary-search-index-no-bound-check.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/codegen/binary-search-index-no-bound-check.rs b/tests/codegen/binary-search-index-no-bound-check.rs
index c1766a4a44a..595969a8979 100644
--- a/tests/codegen/binary-search-index-no-bound-check.rs
+++ b/tests/codegen/binary-search-index-no-bound-check.rs
@@ -9,7 +9,9 @@
 #[no_mangle]
 pub fn binary_search_index_no_bounds_check(s: &[u8]) -> u8 {
     // CHECK-NOT: panic
-    // CHECK-NOT: slice_index_len_fail
+    // CHECK-NOT: slice_start_index_len_fail
+    // CHECK-NOT: slice_end_index_len_fail
+    // CHECK-NOT: panic_bounds_check
     if let Ok(idx) = s.binary_search(&b'\\') {
         s[idx]
     } else {