From 9aa8cfaf2f80a25711b115a3f09682ecbb0a06ab Mon Sep 17 00:00:00 2001 From: Ben Kimock Date: Sat, 7 Jun 2025 19:46:25 -0400 Subject: Convert moves of references to copies in RefProp --- tests/mir-opt/reference_prop.debuginfo.ReferencePropagation.diff | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/mir-opt/reference_prop.debuginfo.ReferencePropagation.diff') 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>::index(move _13, move _15) -> [return: bb5, unwind continue]; +- _12 = <[i32; 10] as Index>::index(move _13, move _15) -> [return: bb5, unwind continue]; ++ _12 = <[i32; 10] as Index>::index(copy _13, move _15) -> [return: bb5, unwind continue]; } bb5: { -- cgit 1.4.1-3-g733a5