diff options
| author | Ben Kimock <kimockb@gmail.com> | 2025-06-07 19:46:25 -0400 |
|---|---|---|
| committer | Ben Kimock <kimockb@gmail.com> | 2025-08-11 23:10:56 -0400 |
| commit | 9aa8cfaf2f80a25711b115a3f09682ecbb0a06ab (patch) | |
| tree | 4e9043d51259919812417b21c960b3d0cd401644 /tests/mir-opt/building | |
| parent | a1531335fe2807715fff569904d99602022643a7 (diff) | |
| download | rust-9aa8cfaf2f80a25711b115a3f09682ecbb0a06ab.tar.gz rust-9aa8cfaf2f80a25711b115a3f09682ecbb0a06ab.zip | |
Convert moves of references to copies in RefProp
Diffstat (limited to 'tests/mir-opt/building')
| -rw-r--r-- | tests/mir-opt/building/index_array_and_slice.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mir-opt/building/index_array_and_slice.rs b/tests/mir-opt/building/index_array_and_slice.rs index f91b37567f7..42ede66d92b 100644 --- a/tests/mir-opt/building/index_array_and_slice.rs +++ b/tests/mir-opt/building/index_array_and_slice.rs @@ -55,7 +55,7 @@ struct WithSliceTail(f64, [i32]); fn index_custom(custom: &WithSliceTail, index: usize) -> &i32 { // CHECK: bb0: // CHECK: [[PTR:_.+]] = &raw const (fake) ((*_1).1: [i32]); - // CHECK: [[LEN:_.+]] = PtrMetadata(move [[PTR]]); + // CHECK: [[LEN:_.+]] = PtrMetadata(copy [[PTR]]); // CHECK: [[LT:_.+]] = Lt(copy _2, copy [[LEN]]); // CHECK: assert(move [[LT]], "index out of bounds{{.+}}", move [[LEN]], copy _2) -> [success: bb1, |
