- // MIR for `main` before ConstProp + // MIR for `main` after ConstProp fn main() -> () { let mut _0: (); let _1: i32; let mut _2: i32; let mut _3: std::boxed::Box; let mut _4: usize; let mut _5: usize; let mut _6: *mut u8; let mut _7: std::boxed::Box; let mut _8: *const i32; let mut _9: *const i32; scope 1 { debug x => _1; } scope 2 { } bb0: { StorageLive(_1); StorageLive(_2); StorageLive(_3); - _4 = SizeOf(i32); - _5 = AlignOf(i32); + _4 = const 4_usize; + _5 = const 4_usize; _6 = alloc::alloc::exchange_malloc(move _4, move _5) -> [return: bb1, unwind unreachable]; } bb1: { StorageLive(_7); _7 = ShallowInitBox(move _6, i32); _8 = (((_7.0: std::ptr::Unique).0: std::ptr::NonNull).0: *const i32); (*_8) = const 42_i32; _3 = move _7; StorageDead(_7); _9 = (((_3.0: std::ptr::Unique).0: std::ptr::NonNull).0: *const i32); _2 = (*_9); _1 = Add(move _2, const 0_i32); StorageDead(_2); drop(_3) -> [return: bb2, unwind unreachable]; } bb2: { StorageDead(_3); _0 = const (); StorageDead(_1); return; } }