1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
|
// MIR for `f_with_arg` after built
fn f_with_arg(_1: String, _2: String) -> () {
debug _arg1 => _1;
debug _arg2 => _2;
let mut _0: ();
let mut _3: !;
let _4: std::string::String;
let _8: ();
let mut _9: std::string::String;
let mut _10: std::string::String;
let mut _11: std::string::String;
scope 1 {
debug _a => _4;
let _5: i32;
scope 2 {
debug _b => _5;
let _6: std::string::String;
scope 3 {
debug _c => _6;
let _7: std::string::String;
scope 4 {
debug _d => _7;
}
}
}
}
bb0: {
StorageLive(_4);
_4 = String::new() -> [return: bb1, unwind: bb34];
}
bb1: {
FakeRead(ForLet(None), _4);
StorageLive(_5);
_5 = const 12_i32;
FakeRead(ForLet(None), _5);
StorageLive(_6);
_6 = String::new() -> [return: bb2, unwind: bb33];
}
bb2: {
FakeRead(ForLet(None), _6);
StorageLive(_7);
_7 = String::new() -> [return: bb3, unwind: bb32];
}
bb3: {
FakeRead(ForLet(None), _7);
StorageLive(_8);
StorageLive(_9);
_9 = move _6;
_8 = std::mem::drop::<String>(move _9) -> [return: bb4, unwind: bb30];
}
bb4: {
StorageDead(_9);
StorageDead(_8);
StorageLive(_10);
_10 = String::new() -> [return: bb5, unwind: bb31];
}
bb5: {
StorageLive(_11);
_11 = String::new() -> [return: bb6, unwind: bb29];
}
bb6: {
drop(_7) -> [return: bb7, unwind: bb27];
}
bb7: {
StorageDead(_7);
drop(_6) -> [return: bb8, unwind: bb25];
}
bb8: {
StorageDead(_6);
StorageDead(_5);
drop(_4) -> [return: bb9, unwind: bb23];
}
bb9: {
StorageDead(_4);
drop(_2) -> [return: bb10, unwind: bb21];
}
bb10: {
drop(_1) -> [return: bb11, unwind: bb19];
}
bb11: {
tailcall g_with_arg(Spanned { node: move _10, span: $DIR/tail_call_drops.rs:36:23: 36:36 (#0) }, Spanned { node: move _11, span: $DIR/tail_call_drops.rs:36:38: 36:51 (#0) });
}
bb12: {
StorageDead(_11);
StorageDead(_10);
drop(_7) -> [return: bb13, unwind: bb32];
}
bb13: {
StorageDead(_7);
drop(_6) -> [return: bb14, unwind: bb33];
}
bb14: {
StorageDead(_6);
StorageDead(_5);
drop(_4) -> [return: bb15, unwind: bb34];
}
bb15: {
StorageDead(_4);
unreachable;
}
bb16: {
drop(_2) -> [return: bb17, unwind: bb35];
}
bb17: {
drop(_1) -> [return: bb18, unwind: bb36];
}
bb18: {
return;
}
bb19 (cleanup): {
drop(_10) -> [return: bb20, unwind terminate(cleanup)];
}
bb20 (cleanup): {
drop(_11) -> [return: bb36, unwind terminate(cleanup)];
}
bb21 (cleanup): {
drop(_10) -> [return: bb22, unwind terminate(cleanup)];
}
bb22 (cleanup): {
drop(_11) -> [return: bb35, unwind terminate(cleanup)];
}
bb23 (cleanup): {
drop(_10) -> [return: bb24, unwind terminate(cleanup)];
}
bb24 (cleanup): {
drop(_11) -> [return: bb34, unwind terminate(cleanup)];
}
bb25 (cleanup): {
drop(_10) -> [return: bb26, unwind terminate(cleanup)];
}
bb26 (cleanup): {
drop(_11) -> [return: bb33, unwind terminate(cleanup)];
}
bb27 (cleanup): {
drop(_10) -> [return: bb28, unwind terminate(cleanup)];
}
bb28 (cleanup): {
drop(_11) -> [return: bb32, unwind terminate(cleanup)];
}
bb29 (cleanup): {
drop(_10) -> [return: bb31, unwind terminate(cleanup)];
}
bb30 (cleanup): {
drop(_9) -> [return: bb31, unwind terminate(cleanup)];
}
bb31 (cleanup): {
drop(_7) -> [return: bb32, unwind terminate(cleanup)];
}
bb32 (cleanup): {
drop(_6) -> [return: bb33, unwind terminate(cleanup)];
}
bb33 (cleanup): {
drop(_4) -> [return: bb34, unwind terminate(cleanup)];
}
bb34 (cleanup): {
drop(_2) -> [return: bb35, unwind terminate(cleanup)];
}
bb35 (cleanup): {
drop(_1) -> [return: bb36, unwind terminate(cleanup)];
}
bb36 (cleanup): {
resume;
}
}
|