fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// MIR for `bar` after built 2 3fn bar(_1: Box<[T]>) -> () { 4 debug it => _1; 5 let mut _0: (); 6 let mut _2: &<[T] as std::ops::Index<usize>>::Output; 7 let mut _3: &[T]; 8 scope 1 { 9 } 10 11 bb0: { 12 StorageLive(_2); 13 StorageLive(_3); 14 _3 = &(*_1); 15 _2 = <[T] as Index<usize>>::index(move _3, const 0_usize) -> [return: bb1, unwind: bb3]; 16 } 17 18 bb1: { 19 StorageDead(_3); 20 PlaceMention((*_2)); 21 StorageDead(_2); 22 _0 = const (); 23 drop(_1) -> [return: bb2, unwind: bb4]; 24 } 25 26 bb2: { 27 return; 28 } 29 30 bb3 (cleanup): { 31 drop(_1) -> [return: bb4, unwind terminate(cleanup)]; 32 } 33 34 bb4 (cleanup): { 35 resume; 36 } 37}