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/reference_prop.debuginfo.ReferencePropagation.diff | |
| 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/reference_prop.debuginfo.ReferencePropagation.diff')
| -rw-r--r-- | tests/mir-opt/reference_prop.debuginfo.ReferencePropagation.diff | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/mir-opt/reference_prop.debuginfo.ReferencePropagation.diff b/tests/mir-opt/reference_prop.debuginfo.ReferencePropagation.diff index 05ad9dbf3cc..3da795b61f9 100644 --- a/tests/mir-opt/reference_prop.debuginfo.ReferencePropagation.diff +++ b/tests/mir-opt/reference_prop.debuginfo.ReferencePropagation.diff @@ -99,7 +99,8 @@ _13 = &(*_26); StorageLive(_15); _15 = RangeFull; - _12 = <[i32; 10] as Index<RangeFull>>::index(move _13, move _15) -> [return: bb5, unwind continue]; +- _12 = <[i32; 10] as Index<RangeFull>>::index(move _13, move _15) -> [return: bb5, unwind continue]; ++ _12 = <[i32; 10] as Index<RangeFull>>::index(copy _13, move _15) -> [return: bb5, unwind continue]; } bb5: { |
