|
11 | 11 | let mut _9: *const [()]; |
12 | 12 | let mut _10: std::boxed::Box<()>; |
13 | 13 | let mut _11: *const (); |
14 | | - let mut _14: std::alloc::Layout; |
15 | | - let mut _20: usize; |
| 14 | + let mut _14: usize; |
16 | 15 | scope 1 { |
17 | 16 | debug vp_ctx => _1; |
18 | 17 | let _5: *const (); |
|
25 | 24 | scope 4 { |
26 | 25 | debug _x => _8; |
27 | 26 | } |
28 | | - scope 18 (inlined foo) { |
29 | | - let mut _21: *const [()]; |
| 27 | + scope 9 (inlined foo) { |
| 28 | + let mut _15: *const [()]; |
30 | 29 | } |
31 | 30 | } |
32 | | - scope 16 (inlined slice_from_raw_parts::<()>) { |
33 | | - scope 17 (inlined std::ptr::from_raw_parts::<[()], ()>) { |
| 31 | + scope 7 (inlined slice_from_raw_parts::<()>) { |
| 32 | + scope 8 (inlined std::ptr::from_raw_parts::<[()], ()>) { |
34 | 33 | } |
35 | 34 | } |
36 | 35 | } |
|
40 | 39 | let mut _13: *mut u8; |
41 | 40 | scope 6 { |
42 | 41 | } |
43 | | - scope 7 (inlined boxed::box_new_uninit) { |
44 | | - let mut _15: std::result::Result<std::ptr::NonNull<[u8]>, std::alloc::AllocError>; |
45 | | - let mut _16: isize; |
46 | | - let _17: std::ptr::NonNull<[u8]>; |
47 | | - let mut _18: !; |
48 | | - scope 8 { |
49 | | - scope 11 (inlined NonNull::<[u8]>::as_mut_ptr) { |
50 | | - scope 12 (inlined NonNull::<[u8]>::as_non_null_ptr) { |
51 | | - scope 13 (inlined NonNull::<[u8]>::cast::<u8>) { |
52 | | - let mut _19: *mut [u8]; |
53 | | - scope 14 (inlined NonNull::<[u8]>::as_ptr) { |
54 | | - } |
55 | | - } |
56 | | - } |
57 | | - scope 15 (inlined NonNull::<u8>::as_ptr) { |
58 | | - } |
59 | | - } |
60 | | - } |
61 | | - scope 9 (inlined <std::alloc::Global as Allocator>::allocate) { |
62 | | - scope 10 (inlined std::alloc::Global::alloc_impl) { |
63 | | - } |
64 | | - } |
65 | | - } |
66 | 42 | } |
67 | 43 |
|
68 | 44 | bb0: { |
|
74 | 50 | + _4 = const (); |
75 | 51 | StorageLive(_12); |
76 | 52 | StorageLive(_13); |
77 | | - StorageLive(_14); |
78 | | -- _14 = const <() as std::mem::SizedTypeProperties>::LAYOUT; |
79 | | -+ _14 = const Layout {{ size: 0_usize, align: std::ptr::Alignment {{ _inner_repr_trick: std::ptr::alignment::AlignmentEnum::_Align1Shl0 }} }}; |
80 | | - StorageLive(_16); |
81 | | - StorageLive(_17); |
82 | | - StorageLive(_18); |
83 | | - StorageLive(_15); |
84 | | -- _15 = std::alloc::Global::alloc_impl_runtime(copy _14, const false) -> [return: bb5, unwind unreachable]; |
85 | | -+ _15 = std::alloc::Global::alloc_impl_runtime(const Layout {{ size: 0_usize, align: std::ptr::Alignment {{ _inner_repr_trick: std::ptr::alignment::AlignmentEnum::_Align1Shl0 }} }}, const false) -> [return: bb5, unwind unreachable]; |
| 53 | + _13 = boxed::box_new_uninit(const <() as std::mem::SizedTypeProperties>::LAYOUT) -> [return: bb2, unwind unreachable]; |
86 | 54 | } |
87 | 55 |
|
88 | 56 | bb1: { |
|
92 | 60 | } |
93 | 61 |
|
94 | 62 | bb2: { |
95 | | - unreachable; |
96 | | - } |
97 | | - |
98 | | - bb3: { |
99 | | -- _18 = handle_alloc_error(move _14) -> unwind unreachable; |
100 | | -+ _18 = handle_alloc_error(const Layout {{ size: 0_usize, align: std::ptr::Alignment {{ _inner_repr_trick: std::ptr::alignment::AlignmentEnum::_Align1Shl0 }} }}) -> unwind unreachable; |
101 | | - } |
102 | | - |
103 | | - bb4: { |
104 | | - _17 = copy ((_15 as Ok).0: std::ptr::NonNull<[u8]>); |
105 | | -- StorageLive(_19); |
106 | | -+ nop; |
107 | | - _19 = copy _17 as *mut [u8] (Transmute); |
108 | | - _13 = copy _19 as *mut u8 (PtrToPtr); |
109 | | -- StorageDead(_19); |
110 | | -+ nop; |
111 | | - StorageDead(_15); |
112 | | - StorageDead(_18); |
113 | | - StorageDead(_17); |
114 | | - StorageDead(_16); |
115 | | - StorageDead(_14); |
116 | | -- _12 = copy _13 as *mut () (PtrToPtr); |
| 63 | + _12 = copy _13 as *mut () (PtrToPtr); |
117 | 64 | - (*_12) = move _4; |
118 | | -+ _12 = copy _19 as *mut () (PtrToPtr); |
119 | 65 | + (*_12) = const (); |
120 | 66 | _3 = copy _13 as std::boxed::Box<()> (Transmute); |
121 | 67 | StorageDead(_13); |
|
133 | 79 | + nop; |
134 | 80 | StorageLive(_7); |
135 | 81 | _7 = copy _5; |
136 | | - StorageLive(_20); |
137 | | - _20 = const 1_usize; |
138 | | -- _6 = *const [()] from (copy _7, copy _20); |
| 82 | + StorageLive(_14); |
| 83 | + _14 = const 1_usize; |
| 84 | +- _6 = *const [()] from (copy _7, copy _14); |
139 | 85 | + _6 = *const [()] from (copy _5, const 1_usize); |
140 | | - StorageDead(_20); |
| 86 | + StorageDead(_14); |
141 | 87 | StorageDead(_7); |
142 | 88 | StorageLive(_8); |
143 | 89 | StorageLive(_9); |
144 | 90 | _9 = copy _6; |
145 | | - StorageLive(_21); |
146 | | -- _21 = copy _9; |
| 91 | + StorageLive(_15); |
| 92 | +- _15 = copy _9; |
147 | 93 | - _8 = copy _9 as *mut () (PtrToPtr); |
148 | | -+ _21 = copy _6; |
| 94 | ++ _15 = copy _6; |
149 | 95 | + _8 = copy _5 as *mut () (PtrToPtr); |
150 | | - StorageDead(_21); |
| 96 | + StorageDead(_15); |
151 | 97 | StorageDead(_9); |
152 | 98 | _0 = const (); |
153 | 99 | StorageDead(_8); |
|
157 | 103 | + nop; |
158 | 104 | drop(_3) -> [return: bb1, unwind unreachable]; |
159 | 105 | } |
160 | | - |
161 | | - bb5: { |
162 | | - _16 = discriminant(_15); |
163 | | - switchInt(move _16) -> [0: bb4, 1: bb3, otherwise: bb2]; |
164 | | - } |
165 | | -+ } |
166 | | -+ |
167 | | -+ ALLOC0 (size: 16, align: 8) { |
168 | | -+ 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................ |
169 | 106 | } |
170 | 107 |
|
0 commit comments