|
9 | 9 | let mut _4: std::result::Result<i32, i32>; // in scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:9
|
10 | 10 | let mut _5: isize; // in scope 0 at $DIR/separate_const_switch.rs:+1:9: +1:10
|
11 | 11 | let _6: std::result::Result<std::convert::Infallible, i32>; // in scope 0 at $DIR/separate_const_switch.rs:+1:9: +1:10
|
12 |
| - let mut _7: !; // in scope 0 at $DIR/separate_const_switch.rs:+1:9: +1:10 |
13 |
| - let mut _8: std::result::Result<std::convert::Infallible, i32>; // in scope 0 at $DIR/separate_const_switch.rs:+1:9: +1:10 |
14 |
| - let _9: i32; // in scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
| 12 | + let mut _7: std::result::Result<std::convert::Infallible, i32>; // in scope 0 at $DIR/separate_const_switch.rs:+1:9: +1:10 |
| 13 | + let _8: i32; // in scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
15 | 14 | scope 1 {
|
16 | 15 | debug residual => _6; // in scope 1 at $DIR/separate_const_switch.rs:+1:9: +1:10
|
17 | 16 | scope 2 {
|
18 | 17 | 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 |
| - debug residual => _8; // in scope 8 at $SRC_DIR/core/src/result.rs:LL:COL |
20 |
| - let _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 |
| 18 | + debug residual => _6; // in scope 8 at $SRC_DIR/core/src/result.rs:LL:COL |
| 19 | + let _13: 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 |
22 | 21 | scope 9 {
|
23 |
| - debug e => _14; // in scope 9 at $SRC_DIR/core/src/result.rs:LL:COL |
| 22 | + debug e => _13; // in scope 9 at $SRC_DIR/core/src/result.rs:LL:COL |
24 | 23 | scope 10 (inlined <i32 as From<i32>>::from) { // at $SRC_DIR/core/src/result.rs:LL:COL
|
25 |
| - debug t => _14; // in scope 10 at $SRC_DIR/core/src/convert/mod.rs:LL:COL |
| 24 | + debug t => _13; // in scope 10 at $SRC_DIR/core/src/convert/mod.rs:LL:COL |
26 | 25 | }
|
27 | 26 | }
|
28 | 27 | }
|
29 | 28 | }
|
30 | 29 | }
|
31 | 30 | scope 3 {
|
32 |
| - debug val => _9; // in scope 3 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
| 31 | + debug val => _8; // in scope 3 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
33 | 32 | scope 4 {
|
34 | 33 | }
|
35 | 34 | }
|
36 | 35 | scope 5 (inlined <Result<i32, i32> as Try>::branch) { // at $DIR/separate_const_switch.rs:25:8: 25:10
|
37 |
| - debug self => _4; // in scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
38 |
| - let mut _10: isize; // in scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
| 36 | + debug self => _1; // in scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
| 37 | + let mut _9: isize; // in scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
| 38 | + let _10: i32; // in scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
39 | 39 | let _11: i32; // in scope 5 at $SRC_DIR/core/src/result.rs:LL:COL
|
40 |
| - let _12: i32; // in scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
41 |
| - let mut _13: std::result::Result<std::convert::Infallible, i32>; // in scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
| 40 | + let mut _12: std::result::Result<std::convert::Infallible, i32>; // in scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
42 | 41 | scope 6 {
|
43 |
| - debug v => _11; // in scope 6 at $SRC_DIR/core/src/result.rs:LL:COL |
| 42 | + debug v => _10; // in scope 6 at $SRC_DIR/core/src/result.rs:LL:COL |
44 | 43 | }
|
45 | 44 | scope 7 {
|
46 |
| - debug e => _12; // in scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
| 45 | + debug e => _11; // in scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
47 | 46 | }
|
48 | 47 | }
|
49 | 48 |
|
50 | 49 | bb0: {
|
51 |
| - StorageLive(_2); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
52 | 50 | StorageLive(_3); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10
|
53 |
| - StorageLive(_4); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:9 |
54 |
| - _4 = _1; // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:9 |
| 51 | + StorageLive(_10); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
55 | 52 | StorageLive(_11); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10
|
56 |
| - StorageLive(_12); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
57 |
| - _10 = discriminant(_4); // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
58 |
| - switchInt(move _10) -> [0: bb7, 1: bb5, otherwise: bb6]; // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
| 53 | + _9 = discriminant(_1); // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
| 54 | + switchInt(move _9) -> [0: bb7, 1: bb5, otherwise: bb6]; // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
59 | 55 | }
|
60 | 56 |
|
61 | 57 | bb1: {
|
62 |
| - StorageDead(_12); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
63 | 58 | StorageDead(_11); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10
|
64 |
| - StorageDead(_4); // scope 0 at $DIR/separate_const_switch.rs:+1:9: +1:10 |
| 59 | + StorageDead(_10); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
65 | 60 | _5 = discriminant(_3); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10
|
66 | 61 | switchInt(move _5) -> [0: bb2, 1: bb4, otherwise: bb3]; // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10
|
67 | 62 | }
|
68 | 63 |
|
69 | 64 | bb2: {
|
70 |
| - StorageLive(_9); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
71 |
| - _9 = ((_3 as Continue).0: i32); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
72 |
| - _2 = _9; // scope 4 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
73 |
| - StorageDead(_9); // scope 0 at $DIR/separate_const_switch.rs:+1:9: +1:10 |
74 |
| - _0 = Result::<i32, i32>::Ok(move _2); // scope 0 at $DIR/separate_const_switch.rs:+1:5: +1:11 |
75 |
| - StorageDead(_2); // scope 0 at $DIR/separate_const_switch.rs:+1:10: +1:11 |
| 65 | + _8 = ((_3 as Continue).0: i32); // scope 0 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
| 66 | + _0 = Result::<i32, i32>::Ok(_8); // scope 0 at $DIR/separate_const_switch.rs:+1:5: +1:11 |
76 | 67 | StorageDead(_3); // scope 0 at $DIR/separate_const_switch.rs:+2:1: +2:2
|
77 | 68 | return; // scope 0 at $DIR/separate_const_switch.rs:+2:2: +2:2
|
78 | 69 | }
|
|
82 | 73 | }
|
83 | 74 |
|
84 | 75 | bb4: {
|
85 |
| - StorageLive(_6); // scope 0 at $DIR/separate_const_switch.rs:+1:9: +1:10 |
86 | 76 | _6 = ((_3 as Break).0: std::result::Result<std::convert::Infallible, i32>); // scope 0 at $DIR/separate_const_switch.rs:+1:9: +1:10
|
87 |
| - StorageLive(_8); // scope 2 at $DIR/separate_const_switch.rs:+1:9: +1:10 |
88 |
| - _8 = _6; // scope 2 at $DIR/separate_const_switch.rs:+1:9: +1:10 |
89 |
| - StorageLive(_14); // scope 2 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
90 |
| - _14 = move ((_8 as Err).0: i32); // scope 8 at $SRC_DIR/core/src/result.rs:LL:COL |
91 |
| - StorageLive(_15); // scope 9 at $SRC_DIR/core/src/result.rs:LL:COL |
92 |
| - _15 = move _14; // scope 10 at $SRC_DIR/core/src/convert/mod.rs:LL:COL |
93 |
| - _0 = Result::<i32, i32>::Err(move _15); // scope 9 at $SRC_DIR/core/src/result.rs:LL:COL |
94 |
| - StorageDead(_15); // scope 9 at $SRC_DIR/core/src/result.rs:LL:COL |
95 |
| - StorageDead(_14); // scope 2 at $DIR/separate_const_switch.rs:+1:8: +1:10 |
96 |
| - StorageDead(_8); // scope 2 at $DIR/separate_const_switch.rs:+1:9: +1:10 |
97 |
| - StorageDead(_6); // scope 0 at $DIR/separate_const_switch.rs:+1:9: +1:10 |
98 |
| - StorageDead(_2); // scope 0 at $DIR/separate_const_switch.rs:+1:10: +1:11 |
| 77 | + _13 = ((_6 as Err).0: i32); // scope 8 at $SRC_DIR/core/src/result.rs:LL:COL |
| 78 | + _0 = Result::<i32, i32>::Err(move _13); // scope 9 at $SRC_DIR/core/src/result.rs:LL:COL |
99 | 79 | StorageDead(_3); // scope 0 at $DIR/separate_const_switch.rs:+2:1: +2:2
|
100 | 80 | return; // scope 0 at $DIR/separate_const_switch.rs:+2:2: +2:2
|
101 | 81 | }
|
102 | 82 |
|
103 | 83 | bb5: {
|
104 |
| - _12 = move ((_4 as Err).0: i32); // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
105 |
| - StorageLive(_13); // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
106 |
| - _13 = Result::<Infallible, i32>::Err(move _12); // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
107 |
| - _3 = ControlFlow::<Result<Infallible, i32>, i32>::Break(move _13); // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
108 |
| - StorageDead(_13); // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
| 84 | + _11 = ((_1 as Err).0: i32); // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
| 85 | + StorageLive(_12); // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
| 86 | + _12 = Result::<Infallible, i32>::Err(move _11); // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
| 87 | + _3 = ControlFlow::<Result<Infallible, i32>, i32>::Break(move _12); // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
| 88 | + StorageDead(_12); // scope 7 at $SRC_DIR/core/src/result.rs:LL:COL |
109 | 89 | goto -> bb1; // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL
|
110 | 90 | }
|
111 | 91 |
|
|
114 | 94 | }
|
115 | 95 |
|
116 | 96 | bb7: {
|
117 |
| - _11 = move ((_4 as Ok).0: i32); // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
118 |
| - _3 = ControlFlow::<Result<Infallible, i32>, i32>::Continue(move _11); // scope 6 at $SRC_DIR/core/src/result.rs:LL:COL |
| 97 | + _10 = ((_1 as Ok).0: i32); // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL |
| 98 | + _3 = ControlFlow::<Result<Infallible, i32>, i32>::Continue(move _10); // scope 6 at $SRC_DIR/core/src/result.rs:LL:COL |
119 | 99 | goto -> bb1; // scope 5 at $SRC_DIR/core/src/result.rs:LL:COL
|
120 | 100 | }
|
121 | 101 | }
|
|
0 commit comments