1 // MIR for `main` after ConstProp
4 let mut _0: (); // return place in scope 0 at $DIR/const_allocation2.rs:4:11: 4:11
5 let _1: &[(std::option::Option<i32>, &[&u8])]; // in scope 0 at $DIR/const_allocation2.rs:5:5: 5:8
6 let mut _2: &&[(std::option::Option<i32>, &[&u8])]; // in scope 0 at $DIR/const_allocation2.rs:5:5: 5:8
9 StorageLive(_1); // scope 0 at $DIR/const_allocation2.rs:5:5: 5:8
10 StorageLive(_2); // scope 0 at $DIR/const_allocation2.rs:5:5: 5:8
11 _2 = const {alloc1: &&[(Option<i32>, &[&u8])]}; // scope 0 at $DIR/const_allocation2.rs:5:5: 5:8
13 // + span: $DIR/const_allocation2.rs:5:5: 5:8
14 // + literal: Const { ty: &&[(Option<i32>, &[&u8])], val: Value(Scalar(alloc1)) }
15 _1 = (*_2); // scope 0 at $DIR/const_allocation2.rs:5:5: 5:8
16 StorageDead(_2); // scope 0 at $DIR/const_allocation2.rs:5:8: 5:9
17 StorageDead(_1); // scope 0 at $DIR/const_allocation2.rs:5:8: 5:9
18 nop; // scope 0 at $DIR/const_allocation2.rs:4:11: 6:2
19 return; // scope 0 at $DIR/const_allocation2.rs:6:2: 6:2
23 alloc1 (static: FOO, size: 8, align: 4) {
24 ╾─alloc28─╼ 03 00 00 00 │ ╾──╼....
27 alloc28 (size: 48, align: 4) {
28 0x00 │ 00 00 00 00 __ __ __ __ ╾─alloc13─╼ 00 00 00 00 │ ....░░░░╾──╼....
29 0x10 │ 00 00 00 00 __ __ __ __ ╾─alloc18─╼ 02 00 00 00 │ ....░░░░╾──╼....
30 0x20 │ 01 00 00 00 2a 00 00 00 ╾─alloc26─╼ 03 00 00 00 │ ....*...╾──╼....
33 alloc13 (size: 0, align: 4) {}
35 alloc18 (size: 8, align: 4) {
36 ╾─alloc16─╼ ╾─alloc17─╼ │ ╾──╼╾──╼
39 alloc16 (size: 1, align: 1) {
43 alloc17 (size: 1, align: 1) {
47 alloc26 (size: 12, align: 4) {
48 ╾─a22+0x3─╼ ╾─alloc23─╼ ╾─a25+0x2─╼ │ ╾──╼╾──╼╾──╼
51 alloc22 (size: 4, align: 1) {
55 alloc23 (size: 1, align: 1) {
59 alloc25 (size: 4, align: 1) {