fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1- // MIR for `two` before Inline 2+ // MIR for `two` after Inline 3 4 fn two() -> () { 5 let mut _0: (); 6 let _1: (); 7+ let mut _2: fn() {f}; 8+ scope 1 (inlined call::<fn() {f}>) { 9+ debug f => _2; 10+ let _3: (); 11+ } 12 13 bb0: { 14 StorageLive(_1); 15- _1 = call::<fn() {f}>(f) -> [return: bb1, unwind continue]; 16+ StorageLive(_2); 17+ _2 = f; 18+ StorageLive(_3); 19+ _3 = <fn() {f} as FnOnce<()>>::call_once(move _2, const ()) -> [return: bb1, unwind continue]; 20 } 21 22 bb1: { 23+ StorageDead(_3); 24+ StorageDead(_2); 25 StorageDead(_1); 26 _0 = const (); 27 return; 28 } 29 } 30