diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2024-08-18 15:51:53 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2024-08-18 15:52:23 -0700 |
| commit | 249a36ffbd577fc76153b7ad4cafd33607ee4ddc (patch) | |
| tree | a79891cc428f6fd30a100242fae5066dee0c4533 /tests/mir-opt/lower_array_len.rs | |
| parent | 32185decd6875d5a86374043c7cfa77682b98ba3 (diff) | |
| download | rust-249a36ffbd577fc76153b7ad4cafd33607ee4ddc.tar.gz rust-249a36ffbd577fc76153b7ad4cafd33607ee4ddc.zip | |
Update mir-opt filechecks
Diffstat (limited to 'tests/mir-opt/lower_array_len.rs')
| -rw-r--r-- | tests/mir-opt/lower_array_len.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mir-opt/lower_array_len.rs b/tests/mir-opt/lower_array_len.rs index f7ed376726c..6553343cbf0 100644 --- a/tests/mir-opt/lower_array_len.rs +++ b/tests/mir-opt/lower_array_len.rs @@ -6,7 +6,7 @@ pub fn array_bound<const N: usize>(index: usize, slice: &[u8; N]) -> u8 { // CHECK-LABEL: fn array_bound( // CHECK-NOT: Lt - // CHECK: Lt(_1, const N); + // CHECK: Lt(copy _1, const N); // CHECK-NOT: Lt if index < slice.len() { slice[index] } else { 42 } } @@ -15,7 +15,7 @@ pub fn array_bound<const N: usize>(index: usize, slice: &[u8; N]) -> u8 { pub fn array_bound_mut<const N: usize>(index: usize, slice: &mut [u8; N]) -> u8 { // CHECK-LABEL: fn array_bound_mut( // CHECK-NOT: Lt - // CHECK: Lt(_1, const N); + // CHECK: Lt(copy _1, const N); // CHECK-NOT: Lt // CHECK: Lt(const 0_usize, const N) // CHECK-NOT: Lt |
