1 - // MIR for `main` before ConstProp
2 + // MIR for `main` after ConstProp
5 let mut _0: (); // return place in scope 0 at $DIR/boxes.rs:11:11: 11:11
6 let _1: i32; // in scope 0 at $DIR/boxes.rs:12:9: 12:10
7 let mut _2: i32; // in scope 0 at $DIR/boxes.rs:12:13: 12:22
8 let mut _3: std::boxed::Box<i32>; // in scope 0 at $DIR/boxes.rs:12:14: 12:22
9 let mut _4: usize; // in scope 0 at $DIR/boxes.rs:12:14: 12:22
10 let mut _5: usize; // in scope 0 at $DIR/boxes.rs:12:14: 12:22
11 let mut _6: *mut u8; // in scope 0 at $DIR/boxes.rs:12:14: 12:22
12 let mut _7: std::boxed::Box<i32>; // in scope 0 at $DIR/boxes.rs:12:14: 12:22
14 debug x => _1; // in scope 1 at $DIR/boxes.rs:12:9: 12:10
20 StorageLive(_1); // scope 0 at $DIR/boxes.rs:12:9: 12:10
21 StorageLive(_2); // scope 0 at $DIR/boxes.rs:12:13: 12:22
22 StorageLive(_3); // scope 0 at $DIR/boxes.rs:12:14: 12:22
23 - _4 = SizeOf(i32); // scope 2 at $DIR/boxes.rs:12:14: 12:22
24 - _5 = AlignOf(i32); // scope 2 at $DIR/boxes.rs:12:14: 12:22
25 - _6 = alloc::alloc::exchange_malloc(move _4, move _5) -> bb1; // scope 2 at $DIR/boxes.rs:12:14: 12:22
26 + _4 = const 4_usize; // scope 2 at $DIR/boxes.rs:12:14: 12:22
27 + _5 = const 4_usize; // scope 2 at $DIR/boxes.rs:12:14: 12:22
28 + _6 = alloc::alloc::exchange_malloc(const 4_usize, const 4_usize) -> bb1; // scope 2 at $DIR/boxes.rs:12:14: 12:22
30 // + span: $DIR/boxes.rs:12:14: 12:22
31 // + literal: Const { ty: unsafe fn(usize, usize) -> *mut u8 {alloc::alloc::exchange_malloc}, val: Value(Scalar(<ZST>)) }
35 StorageLive(_7); // scope 0 at $DIR/boxes.rs:12:14: 12:22
36 _7 = ShallowInitBox(move _6, i32); // scope 0 at $DIR/boxes.rs:12:14: 12:22
37 (*_7) = const 42_i32; // scope 0 at $DIR/boxes.rs:12:19: 12:21
38 _3 = move _7; // scope 0 at $DIR/boxes.rs:12:14: 12:22
39 StorageDead(_7); // scope 0 at $DIR/boxes.rs:12:21: 12:22
40 _2 = (*_3); // scope 0 at $DIR/boxes.rs:12:13: 12:22
41 _1 = Add(move _2, const 0_i32); // scope 0 at $DIR/boxes.rs:12:13: 12:26
42 StorageDead(_2); // scope 0 at $DIR/boxes.rs:12:25: 12:26
43 drop(_3) -> [return: bb2, unwind: bb3]; // scope 0 at $DIR/boxes.rs:12:26: 12:27
47 StorageDead(_3); // scope 0 at $DIR/boxes.rs:12:26: 12:27
48 nop; // scope 0 at $DIR/boxes.rs:11:11: 13:2
49 StorageDead(_1); // scope 0 at $DIR/boxes.rs:13:1: 13:2
50 return; // scope 0 at $DIR/boxes.rs:13:2: 13:2
54 resume; // scope 0 at $DIR/boxes.rs:11:1: 13:2