fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1- // MIR for `foo` before Inline 2+ // MIR for `foo` after Inline 3 4 fn foo() -> () { 5 let mut _0: (); 6 let mut _1: <IntFactory as Factory<T>>::Item; 7 scope 1 { 8 debug x => _1; 9 } 10 11 bb0: { 12 StorageLive(_1); 13 _1 = bar::<T>() -> [return: bb1, unwind continue]; 14 } 15 16 bb1: { 17 _0 = const (); 18 drop(_1) -> [return: bb2, unwind: bb3]; 19 } 20 21 bb2: { 22 StorageDead(_1); 23 return; 24 } 25 26 bb3 (cleanup): { 27 resume; 28 } 29 } 30