fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1- // MIR for `hello` before ConstProp 2+ // MIR for `hello` after ConstProp 3 4 fn hello() -> () { 5 let mut _0: (); 6 let mut _1: bool; 7 let mut _2: !; 8 9 bb0: { 10 StorageLive(_1); 11- _1 = const _; 12- switchInt(move _1) -> [0: bb2, otherwise: bb1]; 13+ _1 = const false; 14+ switchInt(const false) -> [0: bb2, otherwise: bb1]; 15 } 16 17 bb1: { 18 _2 = begin_panic::<&str>(const "explicit panic") -> unwind continue; 19 } 20 21 bb2: { 22 StorageDead(_1); 23 return; 24 } 25 } 26