1 // MIR for `main` after ConstProp
4 let mut _0: (); // return place in scope 0 at $DIR/const_allocation3.rs:4:11: 4:11
5 let _1: &Packed; // in scope 0 at $DIR/const_allocation3.rs:5:5: 5:8
6 let mut _2: &&Packed; // in scope 0 at $DIR/const_allocation3.rs:5:5: 5:8
9 StorageLive(_1); // scope 0 at $DIR/const_allocation3.rs:5:5: 5:8
10 StorageLive(_2); // scope 0 at $DIR/const_allocation3.rs:5:5: 5:8
11 _2 = const {alloc1: &&Packed}; // scope 0 at $DIR/const_allocation3.rs:5:5: 5:8
13 // + span: $DIR/const_allocation3.rs:5:5: 5:8
14 // + literal: Const { ty: &&Packed, val: Value(Scalar(alloc1)) }
15 _1 = (*_2); // scope 0 at $DIR/const_allocation3.rs:5:5: 5:8
16 StorageDead(_2); // scope 0 at $DIR/const_allocation3.rs:5:8: 5:9
17 StorageDead(_1); // scope 0 at $DIR/const_allocation3.rs:5:8: 5:9
18 nop; // scope 0 at $DIR/const_allocation3.rs:4:11: 6:2
19 return; // scope 0 at $DIR/const_allocation3.rs:6:2: 6:2
23 alloc1 (static: FOO, size: 4, align: 4) {
27 alloc11 (size: 168, align: 1) {
28 0x00 │ ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab │ ................
29 0x10 │ ab ab ab ab ab ab ab ab ab ab ab ab ╾─alloc6──╼ │ ............╾──╼
30 0x20 │ 01 ef cd ab 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
31 0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
32 0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
33 0x50 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
34 0x60 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
35 0x70 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
36 0x80 │ 00 00 00 00 00 00 00 00 00 00 ╾─alloc8──╼ 00 00 │ ..........╾──╼..
37 0x90 │ ╾─a9+0x63─╼ 00 00 00 00 00 00 00 00 00 00 00 00 │ ╾──╼............
38 0xa0 │ 00 00 00 00 00 00 00 00 │ ........
41 alloc6 (size: 4, align: 4) {
47 alloc9 (size: 100, align: 1) {
48 0x00 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
49 0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
50 0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
51 0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
52 0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
53 0x50 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
54 0x60 │ 00 00 00 00 │ ....