fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1- // MIR for `main` before Inline 2+ // MIR for `main` after Inline 3 4 fn main() -> () { 5 let mut _0: (); 6 let _1: (); 7+ scope 1 (inlined foo) { 8+ let _2: D; 9+ scope 2 { 10+ debug _d => const D; 11+ scope 3 { 12+ } 13+ } 14+ } 15 16 bb0: { 17 StorageLive(_1); 18- _1 = foo() -> [return: bb1, unwind unreachable]; 19+ StorageLive(_2); 20+ asm!("", options(MAY_UNWIND)) -> [return: bb2, unwind terminate(abi)]; 21 } 22 23 bb1: { 24+ StorageDead(_2); 25 StorageDead(_1); 26 _0 = const (); 27 return; 28+ } 29+ 30+ bb2: { 31+ drop(_2) -> [return: bb1, unwind unreachable]; 32 } 33 } 34