|
11 | 11 | let mut _9: *const [()]; |
12 | 12 | let mut _10: std::boxed::Box<()>; |
13 | 13 | let mut _11: *const (); |
14 | | - let mut _14: usize; |
15 | | - let mut _15: usize; |
16 | | - let mut _24: usize; |
| 14 | + let mut _14: std::alloc::Layout; |
| 15 | + let mut _20: usize; |
17 | 16 | scope 1 { |
18 | 17 | debug vp_ctx => _1; |
19 | 18 | let _5: *const (); |
|
26 | 25 | scope 4 { |
27 | 26 | debug _x => _8; |
28 | 27 | } |
29 | | - scope 20 (inlined foo) { |
30 | | - let mut _25: *const [()]; |
| 28 | + scope 18 (inlined foo) { |
| 29 | + let mut _21: *const [()]; |
31 | 30 | } |
32 | 31 | } |
33 | | - scope 18 (inlined slice_from_raw_parts::<()>) { |
34 | | - scope 19 (inlined std::ptr::from_raw_parts::<[()], ()>) { |
| 32 | + scope 16 (inlined slice_from_raw_parts::<()>) { |
| 33 | + scope 17 (inlined std::ptr::from_raw_parts::<[()], ()>) { |
35 | 34 | } |
36 | 35 | } |
37 | 36 | } |
|
42 | 41 | scope 6 { |
43 | 42 | } |
44 | 43 | scope 7 (inlined boxed::box_new_uninit) { |
45 | | - let _16: std::alloc::Layout; |
46 | | - let mut _17: std::result::Result<std::ptr::NonNull<[u8]>, std::alloc::AllocError>; |
47 | | - let mut _18: isize; |
48 | | - let mut _20: !; |
| 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: !; |
49 | 48 | scope 8 { |
50 | | - let _19: std::ptr::NonNull<[u8]>; |
51 | | - scope 9 { |
52 | | - scope 13 (inlined NonNull::<[u8]>::as_mut_ptr) { |
53 | | - scope 14 (inlined NonNull::<[u8]>::as_non_null_ptr) { |
54 | | - scope 15 (inlined NonNull::<[u8]>::cast::<u8>) { |
55 | | - let mut _23: *mut [u8]; |
56 | | - scope 16 (inlined NonNull::<[u8]>::as_ptr) { |
57 | | - } |
| 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) { |
58 | 54 | } |
59 | 55 | } |
60 | | - scope 17 (inlined NonNull::<u8>::as_ptr) { |
61 | | - } |
62 | 56 | } |
63 | | - } |
64 | | - scope 11 (inlined <std::alloc::Global as Allocator>::allocate) { |
65 | | - scope 12 (inlined std::alloc::Global::alloc_impl) { |
| 57 | + scope 15 (inlined NonNull::<u8>::as_ptr) { |
66 | 58 | } |
67 | 59 | } |
68 | 60 | } |
69 | | - scope 10 (inlined #[track_caller] Layout::from_size_align_unchecked) { |
70 | | - let _21: (); |
71 | | - let mut _22: std::ptr::Alignment; |
| 61 | + scope 9 (inlined <std::alloc::Global as Allocator>::allocate) { |
| 62 | + scope 10 (inlined std::alloc::Global::alloc_impl) { |
| 63 | + } |
72 | 64 | } |
73 | 65 | } |
74 | 66 | } |
|
83 | 75 | StorageLive(_12); |
84 | 76 | StorageLive(_13); |
85 | 77 | StorageLive(_14); |
86 | | -- _14 = const <() as std::mem::SizedTypeProperties>::SIZE; |
87 | | -+ _14 = const 0_usize; |
88 | | - StorageLive(_15); |
89 | | -- _15 = const <() as std::mem::SizedTypeProperties>::ALIGN; |
90 | | -+ _15 = const 1_usize; |
| 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 }} }}; |
91 | 80 | StorageLive(_16); |
| 81 | + StorageLive(_17); |
92 | 82 | StorageLive(_18); |
93 | | - StorageLive(_19); |
94 | | - StorageLive(_20); |
95 | | - StorageLive(_21); |
96 | | - switchInt(UbChecks) -> [0: bb6, otherwise: bb5]; |
| 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]; |
97 | 86 | } |
98 | 87 |
|
99 | 88 | bb1: { |
|
107 | 96 | } |
108 | 97 |
|
109 | 98 | bb3: { |
110 | | -- _20 = handle_alloc_error(move _16) -> unwind unreachable; |
111 | | -+ _20 = handle_alloc_error(const Layout {{ size: 0_usize, align: std::ptr::Alignment {{ _inner_repr_trick: std::ptr::alignment::AlignmentEnum::_Align1Shl0 }} }}) -> unwind unreachable; |
| 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; |
112 | 101 | } |
113 | 102 |
|
114 | 103 | bb4: { |
115 | | - _19 = copy ((_17 as Ok).0: std::ptr::NonNull<[u8]>); |
116 | | -- StorageLive(_23); |
| 104 | + _17 = copy ((_15 as Ok).0: std::ptr::NonNull<[u8]>); |
| 105 | +- StorageLive(_19); |
117 | 106 | + nop; |
118 | | - _23 = copy _19 as *mut [u8] (Transmute); |
119 | | - _13 = copy _23 as *mut u8 (PtrToPtr); |
120 | | -- StorageDead(_23); |
| 107 | + _19 = copy _17 as *mut [u8] (Transmute); |
| 108 | + _13 = copy _19 as *mut u8 (PtrToPtr); |
| 109 | +- StorageDead(_19); |
121 | 110 | + nop; |
122 | | - StorageDead(_17); |
123 | | - StorageDead(_21); |
124 | | - StorageDead(_20); |
125 | | - StorageDead(_19); |
| 111 | + StorageDead(_15); |
126 | 112 | StorageDead(_18); |
| 113 | + StorageDead(_17); |
127 | 114 | StorageDead(_16); |
128 | | - StorageDead(_15); |
129 | 115 | StorageDead(_14); |
130 | 116 | - _12 = copy _13 as *mut () (PtrToPtr); |
131 | 117 | - (*_12) = move _4; |
132 | | -+ _12 = copy _23 as *mut () (PtrToPtr); |
| 118 | ++ _12 = copy _19 as *mut () (PtrToPtr); |
133 | 119 | + (*_12) = const (); |
134 | 120 | _3 = copy _13 as std::boxed::Box<()> (Transmute); |
135 | 121 | StorageDead(_13); |
|
147 | 133 | + nop; |
148 | 134 | StorageLive(_7); |
149 | 135 | _7 = copy _5; |
150 | | - StorageLive(_24); |
151 | | - _24 = const 1_usize; |
152 | | -- _6 = *const [()] from (copy _7, copy _24); |
| 136 | + StorageLive(_20); |
| 137 | + _20 = const 1_usize; |
| 138 | +- _6 = *const [()] from (copy _7, copy _20); |
153 | 139 | + _6 = *const [()] from (copy _5, const 1_usize); |
154 | | - StorageDead(_24); |
| 140 | + StorageDead(_20); |
155 | 141 | StorageDead(_7); |
156 | 142 | StorageLive(_8); |
157 | 143 | StorageLive(_9); |
158 | 144 | _9 = copy _6; |
159 | | - StorageLive(_25); |
160 | | -- _25 = copy _9; |
| 145 | + StorageLive(_21); |
| 146 | +- _21 = copy _9; |
161 | 147 | - _8 = copy _9 as *mut () (PtrToPtr); |
162 | | -+ _25 = copy _6; |
| 148 | ++ _21 = copy _6; |
163 | 149 | + _8 = copy _5 as *mut () (PtrToPtr); |
164 | | - StorageDead(_25); |
| 150 | + StorageDead(_21); |
165 | 151 | StorageDead(_9); |
166 | 152 | _0 = const (); |
167 | 153 | StorageDead(_8); |
|
173 | 159 | } |
174 | 160 |
|
175 | 161 | bb5: { |
176 | | -- _21 = Layout::from_size_align_unchecked::precondition_check(copy _14, copy _15) -> [return: bb6, unwind unreachable]; |
177 | | -+ _21 = Layout::from_size_align_unchecked::precondition_check(const 0_usize, const 1_usize) -> [return: bb6, unwind unreachable]; |
178 | | - } |
179 | | - |
180 | | - bb6: { |
181 | | - StorageLive(_22); |
182 | | -- _22 = copy _15 as std::ptr::Alignment (Transmute); |
183 | | -- _16 = Layout { size: copy _14, align: move _22 }; |
184 | | -+ _22 = const std::ptr::Alignment {{ _inner_repr_trick: std::ptr::alignment::AlignmentEnum::_Align1Shl0 }}; |
185 | | -+ _16 = const Layout {{ size: 0_usize, align: std::ptr::Alignment {{ _inner_repr_trick: std::ptr::alignment::AlignmentEnum::_Align1Shl0 }} }}; |
186 | | - StorageDead(_22); |
187 | | - StorageLive(_17); |
188 | | -- _17 = std::alloc::Global::alloc_impl_runtime(copy _16, const false) -> [return: bb7, unwind unreachable]; |
189 | | -+ _17 = 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: bb7, unwind unreachable]; |
190 | | - } |
191 | | - |
192 | | - bb7: { |
193 | | - _18 = discriminant(_17); |
194 | | - switchInt(move _18) -> [0: bb4, 1: bb3, otherwise: bb2]; |
| 162 | + _16 = discriminant(_15); |
| 163 | + switchInt(move _16) -> [0: bb4, 1: bb3, otherwise: bb2]; |
195 | 164 | } |
196 | 165 | + } |
197 | 166 | + |
|
0 commit comments