fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1- // MIR for `main` before ConstProp 2+ // MIR for `main` after ConstProp 3 4 fn main() -> () { 5 let mut _0: (); 6 let _1: u32; 7 scope 1 { 8 debug x => _1; 9 let _2: u8; 10 scope 2 { 11 debug y => _2; 12 } 13 } 14 15 bb0: { 16 StorageLive(_1); 17- _1 = const 42_u8 as u32 (IntToInt); 18+ _1 = const 42_u32; 19 StorageLive(_2); 20- _2 = const 42_u32 as u8 (IntToInt); 21+ _2 = const 42_u8; 22 _0 = const (); 23 StorageDead(_2); 24 StorageDead(_1); 25 return; 26 } 27 } 28