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
14 // + val: Value(Scalar(alloc1))
16 // + span: $DIR/const_allocation3.rs:5:5: 5:8
17 // + literal: Const { ty: &&Packed, val: Value(Scalar(alloc1)) }
18 _1 = (*_2); // scope 0 at $DIR/const_allocation3.rs:5:5: 5:8
19 StorageDead(_2); // scope 0 at $DIR/const_allocation3.rs:5:8: 5:9
20 StorageDead(_1); // scope 0 at $DIR/const_allocation3.rs:5:8: 5:9
21 nop; // scope 0 at $DIR/const_allocation3.rs:4:11: 6:2
22 return; // scope 0 at $DIR/const_allocation3.rs:6:2: 6:2
26 alloc1 (static: FOO, size: 4, align: 4) {
30 alloc11 (size: 168, align: 1) {
31 0x00 │ ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab │ ................
32 0x10 │ ab ab ab ab ab ab ab ab ab ab ab ab ╾─alloc6──╼ │ ............╾──╼
33 0x20 │ 01 ef cd ab 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
34 0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
35 0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
36 0x50 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
37 0x60 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
38 0x70 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
39 0x80 │ 00 00 00 00 00 00 00 00 00 00 ╾─alloc8──╼ 00 00 │ ..........╾──╼..
40 0x90 │ ╾─a9+0x63─╼ 00 00 00 00 00 00 00 00 00 00 00 00 │ ╾──╼............
41 0xa0 │ 00 00 00 00 00 00 00 00 │ ........
44 alloc6 (size: 4, align: 4) {
50 alloc9 (size: 100, align: 1) {
51 0x00 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
52 0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
53 0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
54 0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
55 0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
56 0x50 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
57 0x60 │ 00 00 00 00 │ ....