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
This commit modifies the pretty printer and const eval in the MIR so
that `destructure_const` (used in `pretty_print_const_value`) can handle
enums with no variants (or types containing enums with no variants).
Signed-off-by: David Wood <[email protected]>
_3 = Len(_1); // scope 0 at $DIR/issue-72181.rs:16:40: 16:45
20
+
_4 = Lt(_2, _3); // scope 0 at $DIR/issue-72181.rs:16:40: 16:45
21
+
assert(move _4, "index out of bounds: the len is {} but the index is {}", move _3, _2) -> [success: bb2, unwind: bb1]; // scope 0 at $DIR/issue-72181.rs:16:40: 16:45
22
+
}
23
+
24
+
bb1 (cleanup): {
25
+
resume; // scope 0 at $DIR/issue-72181.rs:16:1: 16:49
26
+
}
27
+
28
+
bb2: {
29
+
_0 = (_1[_2].1: u32); // scope 0 at $DIR/issue-72181.rs:16:40: 16:47
30
+
StorageDead(_2); // scope 0 at $DIR/issue-72181.rs:16:48: 16:49
31
+
goto -> bb3; // scope 0 at $DIR/issue-72181.rs:16:49: 16:49
32
+
}
33
+
34
+
bb3: {
35
+
return; // scope 0 at $DIR/issue-72181.rs:16:49: 16:49
0 commit comments