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/large_array_index.main.GVN.32bit.panic-abort.diff
+4-3
Original file line number
Diff line number
Diff line change
@@ -18,11 +18,12 @@
18
18
_2 = [const 0_u8; 5000];
19
19
StorageLive(_3);
20
20
_3 = const 2_usize;
21
-
_4 = Len(_2);
21
+
- _4 = Len(_2);
22
22
- _5 = Lt(_3, _4);
23
23
- assert(move _5, "index out of bounds: the length is {} but the index is {}", move _4, _3) -> [success: bb1, unwind unreachable];
24
-
+ _5 = Lt(const 2_usize, _4);
25
-
+ assert(move _5, "index out of bounds: the length is {} but the index is {}", move _4, const 2_usize) -> [success: bb1, unwind unreachable];
24
+
+ _4 = const 5000_usize;
25
+
+ _5 = const true;
26
+
+ assert(const true, "index out of bounds: the length is {} but the index is {}", const 5000_usize, const 2_usize) -> [success: bb1, unwind unreachable];
Copy file name to clipboardExpand all lines: tests/mir-opt/const_prop/large_array_index.main.GVN.64bit.panic-abort.diff
+4-3
Original file line number
Diff line number
Diff line change
@@ -18,11 +18,12 @@
18
18
_2 = [const 0_u8; 5000];
19
19
StorageLive(_3);
20
20
_3 = const 2_usize;
21
-
_4 = Len(_2);
21
+
- _4 = Len(_2);
22
22
- _5 = Lt(_3, _4);
23
23
- assert(move _5, "index out of bounds: the length is {} but the index is {}", move _4, _3) -> [success: bb1, unwind unreachable];
24
-
+ _5 = Lt(const 2_usize, _4);
25
-
+ assert(move _5, "index out of bounds: the length is {} but the index is {}", move _4, const 2_usize) -> [success: bb1, unwind unreachable];
24
+
+ _4 = const 5000_usize;
25
+
+ _5 = const true;
26
+
+ assert(const true, "index out of bounds: the length is {} but the index is {}", const 5000_usize, const 2_usize) -> [success: bb1, unwind unreachable];
0 commit comments