|
17 | 17 | scope 2 {
|
18 | 18 | scope 8 (inlined #[track_caller] <Result<i32, i32> as FromResidual<Result<Infallible, i32>>>::from_residual) { // at $DIR/separate_const_switch.rs:25:8: 25:10
|
19 | 19 | debug residual => _8; // in scope 8 at $SRC_DIR/core/src/result.rs:LL:COL
|
20 |
| - let _16: i32; // in scope 8 at $SRC_DIR/core/src/result.rs:LL:COL |
21 |
| - let mut _17: i32; // in scope 8 at $SRC_DIR/core/src/result.rs:LL:COL |
22 |
| - let mut _18: i32; // in scope 8 at $SRC_DIR/core/src/result.rs:LL:COL |
| 20 | + let mut _14: i32; // in scope 8 at $SRC_DIR/core/src/result.rs:LL:COL |
| 21 | + let mut _15: i32; // in scope 8 at $SRC_DIR/core/src/result.rs:LL:COL |
23 | 22 | scope 9 {
|
24 |
| - debug e => _16; // in scope 9 at $SRC_DIR/core/src/result.rs:LL:COL |
| 23 | + debug e => _15; // in scope 9 at $SRC_DIR/core/src/result.rs:LL:COL |
25 | 24 | }
|
26 | 25 | }
|
27 | 26 | }
|
|
34 | 33 | scope 5 (inlined <Result<i32, i32> as Try>::branch) { // at $DIR/separate_const_switch.rs:25:8: 25:10
|
35 | 34 | debug self => _4; // in scope 5 at $SRC_DIR/core/src/result.rs:LL:COL
|
36 | 35 | let mut _10: isize; // in scope 5 at $SRC_DIR/core/src/result.rs:LL:COL
|
37 |
| - let _11: i32; // in scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
38 |
| - let mut _12: i32; // in scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
39 |
| - let _13: i32; // in scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
40 |
| - let mut _14: std::result::Result<std::convert::Infallible, i32>; // in scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
41 |
| - let mut _15: i32; // in scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
| 36 | + let mut _11: i32; // in scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
| 37 | + let mut _12: std::result::Result<std::convert::Infallible, i32>; // in scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
| 38 | + let mut _13: i32; // in scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
42 | 39 | scope 6 {
|
43 | 40 | debug v => _11; // in scope 6 at $SRC_DIR/core/src/result.rs:LL:COL
|
44 | 41 | }
|
|
52 | 49 | StorageLive(_3); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10
|
53 | 50 | StorageLive(_4); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:9
|
54 | 51 | _4 = _1; // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:9
|
| 52 | + StorageLive(_11); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
| 53 | + StorageLive(_13); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
55 | 54 | _10 = discriminant(_4); // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL
|
56 | 55 | - switchInt(move _10) -> [0: bb7, 1: bb5, otherwise: bb6]; // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL
|
57 | 56 | + switchInt(move _10) -> [0: bb6, 1: bb4, otherwise: bb5]; // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL
|
58 | 57 | }
|
59 | 58 |
|
60 | 59 | bb1: {
|
| 60 | +- StorageDead(_13); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
| 61 | +- StorageDead(_11); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
61 | 62 | - StorageDead(_4); // scope 0 at $DIR/separate_const_switch.rs:+1:9: +1:10
|
62 | 63 | - _5 = discriminant(_3); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10
|
63 | 64 | - switchInt(move _5) -> [0: bb2, 1: bb4, otherwise: bb3]; // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10
|
|
87 | 88 | _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 | 89 | StorageLive(_8); // scope 2 at $DIR/separate_const_switch.rs:+1:9: +1:10
|
89 | 90 | _8 = _6; // scope 2 at $DIR/separate_const_switch.rs:+1:9: +1:10
|
90 |
| - StorageLive(_16); // scope 8 at $SRC_DIR/core/src/result.rs:LL:COL |
91 |
| - _16 = move ((_8 as Err).0: i32); // scope 8 at $SRC_DIR/core/src/result.rs:LL:COL |
92 |
| - StorageLive(_17); // scope 9 at $SRC_DIR/core/src/result.rs:LL:COL |
93 |
| - StorageLive(_18); // scope 9 at $SRC_DIR/core/src/result.rs:LL:COL |
94 |
| - _18 = move _16; // scope 9 at $SRC_DIR/core/src/result.rs:LL:COL |
95 |
| -- _17 = <i32 as From<i32>>::from(move _18) -> bb8; // scope 9 at $SRC_DIR/core/src/result.rs:LL:COL |
96 |
| -+ _17 = <i32 as From<i32>>::from(move _18) -> bb7; // scope 9 at $SRC_DIR/core/src/result.rs:LL:COL |
| 91 | + StorageLive(_15); // scope 2 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
| 92 | + _15 = move ((_8 as Err).0: i32); // scope 8 at $SRC_DIR/core/src/result.rs:LL:COL |
| 93 | + StorageLive(_14); // scope 9 at $SRC_DIR/core/src/result.rs:LL:COL |
| 94 | +- _14 = <i32 as From<i32>>::from(move _15) -> bb8; // scope 9 at $SRC_DIR/core/src/result.rs:LL:COL |
| 95 | ++ _14 = <i32 as From<i32>>::from(move _15) -> bb7; // scope 9 at $SRC_DIR/core/src/result.rs:LL:COL |
97 | 96 | // mir::Constant
|
98 | 97 | // + span: $SRC_DIR/core/src/result.rs:LL:COL
|
99 | 98 | // + literal: Const { ty: fn(i32) -> i32 {<i32 as From<i32>>::from}, val: Value(<ZST>) }
|
100 | 99 | }
|
101 | 100 |
|
102 | 101 | - bb5: {
|
103 | 102 | + bb4: {
|
104 |
| - StorageLive(_13); // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
105 | 103 | _13 = move ((_4 as Err).0: i32); // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL
|
106 |
| - StorageLive(_14); // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
107 |
| - StorageLive(_15); // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
108 |
| - _15 = move _13; // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
109 |
| - Deinit(_14); // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
110 |
| - ((_14 as Err).0: i32) = move _15; // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
111 |
| - discriminant(_14) = 1; // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
112 |
| - StorageDead(_15); // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
| 104 | + StorageLive(_12); // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
| 105 | + Deinit(_12); // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
| 106 | + ((_12 as Err).0: i32) = move _13; // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
| 107 | + discriminant(_12) = 1; // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
113 | 108 | Deinit(_3); // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL
|
114 |
| - ((_3 as Break).0: std::result::Result<std::convert::Infallible, i32>) = move _14; // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
| 109 | + ((_3 as Break).0: std::result::Result<std::convert::Infallible, i32>) = move _12; // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
115 | 110 | discriminant(_3) = 1; // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL
|
116 |
| - StorageDead(_14); // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
117 |
| - StorageDead(_13); // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
| 111 | + StorageDead(_12); // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
118 | 112 | - goto -> bb1; // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL
|
| 113 | ++ StorageDead(_13); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
| 114 | ++ StorageDead(_11); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
119 | 115 | + StorageDead(_4); // scope 0 at $DIR/separate_const_switch.rs:+1:9: +1:10
|
120 | 116 | + _5 = discriminant(_3); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10
|
121 | 117 | + switchInt(move _5) -> [0: bb1, 1: bb3, otherwise: bb2]; // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10
|
|
128 | 124 |
|
129 | 125 | - bb7: {
|
130 | 126 | + bb6: {
|
131 |
| - StorageLive(_11); // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
132 | 127 | _11 = move ((_4 as Ok).0: i32); // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL
|
133 |
| - StorageLive(_12); // scope 6 at $SRC_DIR/core/src/result.rs:LL:COL |
134 |
| - _12 = move _11; // scope 6 at $SRC_DIR/core/src/result.rs:LL:COL |
135 | 128 | Deinit(_3); // scope 6 at $SRC_DIR/core/src/result.rs:LL:COL
|
136 |
| - ((_3 as Continue).0: i32) = move _12; // scope 6 at $SRC_DIR/core/src/result.rs:LL:COL |
| 129 | + ((_3 as Continue).0: i32) = move _11; // scope 6 at $SRC_DIR/core/src/result.rs:LL:COL |
137 | 130 | discriminant(_3) = 0; // scope 6 at $SRC_DIR/core/src/result.rs:LL:COL
|
138 |
| - StorageDead(_12); // scope 6 at $SRC_DIR/core/src/result.rs:LL:COL |
139 |
| - StorageDead(_11); // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
140 | 131 | - goto -> bb1; // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL
|
| 132 | ++ StorageDead(_13); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
| 133 | ++ StorageDead(_11); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
141 | 134 | + StorageDead(_4); // scope 0 at $DIR/separate_const_switch.rs:+1:9: +1:10
|
142 | 135 | + _5 = discriminant(_3); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10
|
143 | 136 | + switchInt(move _5) -> [0: bb1, 1: bb3, otherwise: bb2]; // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10
|
144 | 137 | }
|
145 | 138 |
|
146 | 139 | - bb8: {
|
147 | 140 | + bb7: {
|
148 |
| - StorageDead(_18); // scope 9 at $SRC_DIR/core/src/result.rs:LL:COL |
149 | 141 | Deinit(_0); // scope 9 at $SRC_DIR/core/src/result.rs:LL:COL
|
150 |
| - ((_0 as Err).0: i32) = move _17; // scope 9 at $SRC_DIR/core/src/result.rs:LL:COL |
| 142 | + ((_0 as Err).0: i32) = move _14; // scope 9 at $SRC_DIR/core/src/result.rs:LL:COL |
151 | 143 | discriminant(_0) = 1; // scope 9 at $SRC_DIR/core/src/result.rs:LL:COL
|
152 |
| - StorageDead(_17); // scope 9 at $SRC_DIR/core/src/result.rs:LL:COL |
153 |
| - StorageDead(_16); // scope 8 at $SRC_DIR/core/src/result.rs:LL:COL |
| 144 | + StorageDead(_14); // scope 9 at $SRC_DIR/core/src/result.rs:LL:COL |
| 145 | + StorageDead(_15); // scope 2 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
154 | 146 | StorageDead(_8); // scope 2 at $DIR/separate_const_switch.rs:+1:9: +1:10
|
155 | 147 | StorageDead(_6); // scope 0 at $DIR/separate_const_switch.rs:+1:9: +1:10
|
156 | 148 | StorageDead(_2); // scope 0 at $DIR/separate_const_switch.rs:+1:10: +1:11
|
|
0 commit comments