You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.main.ConstProp.32bit.panic-abort.diff
+3-3
Original file line number
Diff line number
Diff line change
@@ -34,11 +34,11 @@
34
34
StorageLive(_5);
35
35
StorageLive(_6);
36
36
_6 = const 3_usize;
37
-
_7 = const 3_usize;
37
+
_7 = Len((*_1));
38
38
- _8 = Lt(_6, _7);
39
39
- assert(move _8, "index out of bounds: the length is {} but the index is {}", move _7, _6) -> [success: bb1, unwind unreachable];
40
-
+ _8 = const false;
41
-
+ assert(const false, "index out of bounds: the length is {} but the index is {}", const 3_usize, const 3_usize) -> [success: bb1, unwind unreachable];
40
+
+ _8 = Lt(const 3_usize, _7);
41
+
+ assert(move _8, "index out of bounds: the length is {} but the index is {}", move _7, const 3_usize) -> [success: bb1, unwind unreachable];
Copy file name to clipboardExpand all lines: tests/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.main.ConstProp.64bit.panic-abort.diff
+3-3
Original file line number
Diff line number
Diff line change
@@ -34,11 +34,11 @@
34
34
StorageLive(_5);
35
35
StorageLive(_6);
36
36
_6 = const 3_usize;
37
-
_7 = const 3_usize;
37
+
_7 = Len((*_1));
38
38
- _8 = Lt(_6, _7);
39
39
- assert(move _8, "index out of bounds: the length is {} but the index is {}", move _7, _6) -> [success: bb1, unwind unreachable];
40
-
+ _8 = const false;
41
-
+ assert(const false, "index out of bounds: the length is {} but the index is {}", const 3_usize, const 3_usize) -> [success: bb1, unwind unreachable];
40
+
+ _8 = Lt(const 3_usize, _7);
41
+
+ assert(move _8, "index out of bounds: the length is {} but the index is {}", move _7, const 3_usize) -> [success: bb1, unwind unreachable];
0 commit comments