|
57 | 57 | _4 = _1; // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:9
|
58 | 58 | StorageLive(_10); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10
|
59 | 59 | _10 = discriminant(_4); // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL
|
60 |
| -- switchInt(move _10) -> [0_isize: bb6, 1_isize: bb4, otherwise: bb5]; // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
61 |
| -+ switchInt(move _10) -> [0_isize: bb5, 1_isize: bb3, otherwise: bb4]; // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
| 60 | +- switchInt(move _10) -> [0_isize: bb7, 1_isize: bb5, otherwise: bb6]; // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
| 61 | ++ switchInt(move _10) -> [0_isize: bb6, 1_isize: bb4, otherwise: bb5]; // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
62 | 62 | }
|
63 | 63 |
|
64 | 64 | bb1: {
|
65 | 65 | - StorageDead(_10); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10
|
66 | 66 | - StorageDead(_4); // scope 0 at $DIR/separate_const_switch.rs:+1:9: +1:10
|
67 | 67 | - _5 = discriminant(_3); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10
|
68 |
| -- switchInt(move _5) -> [0_isize: bb2, otherwise: bb3]; // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
| 68 | +- switchInt(move _5) -> [0_isize: bb2, 1_isize: bb4, otherwise: bb3]; // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
69 | 69 | - }
|
70 | 70 | -
|
71 | 71 | - bb2: {
|
|
83 | 83 |
|
84 | 84 | - bb3: {
|
85 | 85 | + bb2: {
|
| 86 | + unreachable; // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
| 87 | + } |
| 88 | + |
| 89 | +- bb4: { |
| 90 | ++ bb3: { |
86 | 91 | StorageLive(_6); // scope 0 at $DIR/separate_const_switch.rs:+1:9: +1:10
|
87 | 92 | _6 = ((_3 as Break).0: std::result::Result<std::convert::Infallible, i32>); // scope 0 at $DIR/separate_const_switch.rs:+1:9: +1:10
|
88 | 93 | StorageLive(_8); // scope 2 at $DIR/separate_const_switch.rs:+1:9: +1:10
|
|
106 | 111 | return; // scope 0 at $DIR/separate_const_switch.rs:+2:2: +2:2
|
107 | 112 | }
|
108 | 113 |
|
109 |
| -- bb4: { |
110 |
| -+ bb3: { |
| 114 | +- bb5: { |
| 115 | ++ bb4: { |
111 | 116 | StorageLive(_13); // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL
|
112 | 117 | _13 = move ((_4 as Err).0: i32); // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL
|
113 | 118 | StorageLive(_14); // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL
|
|
126 | 131 | + StorageDead(_10); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10
|
127 | 132 | + StorageDead(_4); // scope 0 at $DIR/separate_const_switch.rs:+1:9: +1:10
|
128 | 133 | + _5 = discriminant(_3); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10
|
129 |
| -+ switchInt(move _5) -> [0_isize: bb1, otherwise: bb2]; // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
| 134 | ++ switchInt(move _5) -> [0_isize: bb1, 1_isize: bb3, otherwise: bb2]; // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
130 | 135 | }
|
131 | 136 |
|
132 |
| -- bb5: { |
133 |
| -+ bb4: { |
| 137 | +- bb6: { |
| 138 | ++ bb5: { |
134 | 139 | unreachable; // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL
|
135 | 140 | }
|
136 | 141 |
|
137 |
| -- bb6: { |
138 |
| -+ bb5: { |
| 142 | +- bb7: { |
| 143 | ++ bb6: { |
139 | 144 | StorageLive(_11); // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL
|
140 | 145 | _11 = move ((_4 as Ok).0: i32); // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL
|
141 | 146 | StorageLive(_12); // scope 6 at $SRC_DIR/core/src/result.rs:LL:COL
|
|
149 | 154 | + StorageDead(_10); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10
|
150 | 155 | + StorageDead(_4); // scope 0 at $DIR/separate_const_switch.rs:+1:9: +1:10
|
151 | 156 | + _5 = discriminant(_3); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10
|
152 |
| -+ switchInt(move _5) -> [0_isize: bb1, otherwise: bb2]; // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
| 157 | ++ switchInt(move _5) -> [0_isize: bb1, 1_isize: bb3, otherwise: bb2]; // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
153 | 158 | }
|
154 | 159 | }
|
155 | 160 |
|
0 commit comments