fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1// MIR for `main` 0 mir_map 2 3fn main() -> () { 4 let mut _0: (); // return place in scope 0 at $DIR/issue-49232.rs:5:11: 5:11 5 let mut _1: (); // in scope 0 at $DIR/issue-49232.rs:5:1: 15:2 6 let _2: i32; // in scope 0 at $DIR/issue-49232.rs:7:13: 7:19 7 let mut _3: bool; // in scope 0 at $DIR/issue-49232.rs:8:19: 8:23 8 let mut _4: !; // in scope 0 at $DIR/issue-49232.rs:10:25: 10:30 9 let _5: (); // in scope 0 at $DIR/issue-49232.rs:13:9: 13:22 10 let mut _6: &i32; // in scope 0 at $DIR/issue-49232.rs:13:14: 13:21 11 scope 1 { 12 debug beacon => _2; // in scope 1 at $DIR/issue-49232.rs:7:13: 7:19 13 } 14 15 bb0: { 16 goto -> bb1; // bb0[0]: scope 0 at $DIR/issue-49232.rs:6:5: 14:6 17 } 18 19 bb1: { 20 falseUnwind -> [real: bb3, cleanup: bb4]; // bb1[0]: scope 0 at $DIR/issue-49232.rs:6:5: 14:6 21 } 22 23 bb2: { 24 goto -> bb14; // bb2[0]: scope 0 at $DIR/issue-49232.rs:15:2: 15:2 25 } 26 27 bb3: { 28 StorageLive(_2); // bb3[0]: scope 0 at $DIR/issue-49232.rs:7:13: 7:19 29 StorageLive(_3); // bb3[1]: scope 0 at $DIR/issue-49232.rs:8:19: 8:23 30 _3 = const true; // bb3[2]: scope 0 at $DIR/issue-49232.rs:8:19: 8:23 31 // ty::Const 32 // + ty: bool 33 // + val: Value(Scalar(0x01)) 34 // mir::Constant 35 // + span: $DIR/issue-49232.rs:8:19: 8:23 36 // + literal: Const { ty: bool, val: Value(Scalar(0x01)) } 37 FakeRead(ForMatchedPlace, _3); // bb3[3]: scope 0 at $DIR/issue-49232.rs:8:19: 8:23 38 switchInt(_3) -> [false: bb5, otherwise: bb6]; // bb3[4]: scope 0 at $DIR/issue-49232.rs:9:17: 9:22 39 } 40 41 bb4 (cleanup): { 42 resume; // bb4[0]: scope 0 at $DIR/issue-49232.rs:5:1: 15:2 43 } 44 45 bb5: { 46 falseEdges -> [real: bb7, imaginary: bb6]; // bb5[0]: scope 0 at $DIR/issue-49232.rs:9:17: 9:22 47 } 48 49 bb6: { 50 _0 = const (); // bb6[0]: scope 0 at $DIR/issue-49232.rs:10:25: 10:30 51 // ty::Const 52 // + ty: () 53 // + val: Value(Scalar(<ZST>)) 54 // mir::Constant 55 // + span: $DIR/issue-49232.rs:10:25: 10:30 56 // + literal: Const { ty: (), val: Value(Scalar(<ZST>)) } 57 goto -> bb8; // bb6[1]: scope 0 at $DIR/issue-49232.rs:10:25: 10:30 58 } 59 60 bb7: { 61 _2 = const 4i32; // bb7[0]: scope 0 at $DIR/issue-49232.rs:9:26: 9:27 62 // ty::Const 63 // + ty: i32 64 // + val: Value(Scalar(0x00000004)) 65 // mir::Constant 66 // + span: $DIR/issue-49232.rs:9:26: 9:27 67 // + literal: Const { ty: i32, val: Value(Scalar(0x00000004)) } 68 goto -> bb12; // bb7[1]: scope 0 at $DIR/issue-49232.rs:8:13: 11:14 69 } 70 71 bb8: { 72 StorageDead(_3); // bb8[0]: scope 0 at $DIR/issue-49232.rs:12:10: 12:11 73 goto -> bb9; // bb8[1]: scope 0 at $DIR/issue-49232.rs:10:25: 10:30 74 } 75 76 bb9: { 77 StorageDead(_2); // bb9[0]: scope 0 at $DIR/issue-49232.rs:14:5: 14:6 78 goto -> bb2; // bb9[1]: scope 0 at $DIR/issue-49232.rs:10:25: 10:30 79 } 80 81 bb10: { 82 _4 = const (); // bb10[0]: scope 0 at $DIR/issue-49232.rs:10:25: 10:30 83 // ty::Const 84 // + ty: () 85 // + val: Value(Scalar(<ZST>)) 86 // mir::Constant 87 // + span: $DIR/issue-49232.rs:10:25: 10:30 88 // + literal: Const { ty: (), val: Value(Scalar(<ZST>)) } 89 unreachable; // bb10[1]: scope 0 at $DIR/issue-49232.rs:10:25: 10:30 90 } 91 92 bb11: { 93 goto -> bb12; // bb11[0]: scope 0 at $DIR/issue-49232.rs:8:13: 11:14 94 } 95 96 bb12: { 97 FakeRead(ForLet, _2); // bb12[0]: scope 0 at $DIR/issue-49232.rs:7:13: 7:19 98 StorageDead(_3); // bb12[1]: scope 0 at $DIR/issue-49232.rs:12:10: 12:11 99 StorageLive(_5); // bb12[2]: scope 1 at $DIR/issue-49232.rs:13:9: 13:22 100 StorageLive(_6); // bb12[3]: scope 1 at $DIR/issue-49232.rs:13:14: 13:21 101 _6 = &_2; // bb12[4]: scope 1 at $DIR/issue-49232.rs:13:14: 13:21 102 _5 = const std::mem::drop::<&i32>(move _6) -> [return: bb13, unwind: bb4]; // bb12[5]: scope 1 at $DIR/issue-49232.rs:13:9: 13:22 103 // ty::Const 104 // + ty: fn(&i32) {std::mem::drop::<&i32>} 105 // + val: Value(Scalar(<ZST>)) 106 // mir::Constant 107 // + span: $DIR/issue-49232.rs:13:9: 13:13 108 // + literal: Const { ty: fn(&i32) {std::mem::drop::<&i32>}, val: Value(Scalar(<ZST>)) } 109 } 110 111 bb13: { 112 StorageDead(_6); // bb13[0]: scope 1 at $DIR/issue-49232.rs:13:21: 13:22 113 StorageDead(_5); // bb13[1]: scope 1 at $DIR/issue-49232.rs:13:22: 13:23 114 _1 = const (); // bb13[2]: scope 0 at $DIR/issue-49232.rs:6:10: 14:6 115 // ty::Const 116 // + ty: () 117 // + val: Value(Scalar(<ZST>)) 118 // mir::Constant 119 // + span: $DIR/issue-49232.rs:6:10: 14:6 120 // + literal: Const { ty: (), val: Value(Scalar(<ZST>)) } 121 StorageDead(_2); // bb13[3]: scope 0 at $DIR/issue-49232.rs:14:5: 14:6 122 goto -> bb1; // bb13[4]: scope 0 at $DIR/issue-49232.rs:6:5: 14:6 123 } 124 125 bb14: { 126 return; // bb14[0]: scope 0 at $DIR/issue-49232.rs:15:2: 15:2 127 } 128}