|
8 | 8 | let _3: std::boxed::Box<()>; |
9 | 9 | let mut _6: *const (); |
10 | 10 | let mut _8: *const [()]; |
11 | | - let mut _9: std::boxed::Box<()>; |
12 | | - let mut _10: *const (); |
13 | | - let mut _23: usize; |
| 11 | + let mut _9: *const (); |
| 12 | + let mut _22: usize; |
| 13 | + let mut _23: std::ptr::NonNull<()>; |
14 | 14 | scope 1 { |
15 | 15 | debug vp_ctx => _1; |
16 | 16 | let _4: *const (); |
17 | 17 | scope 2 { |
18 | | - debug slf => _10; |
| 18 | + debug slf => _9; |
19 | 19 | let _5: *const [()]; |
20 | 20 | scope 3 { |
21 | 21 | debug bytes => _5; |
|
33 | 33 | } |
34 | 34 | } |
35 | 35 | scope 5 (inlined Box::<()>::new) { |
| 36 | + let mut _10: usize; |
36 | 37 | let mut _11: usize; |
37 | | - let mut _12: usize; |
38 | | - let mut _13: *mut u8; |
| 38 | + let mut _12: *mut u8; |
39 | 39 | scope 6 (inlined alloc::alloc::exchange_malloc) { |
40 | | - let _14: std::alloc::Layout; |
41 | | - let mut _15: std::result::Result<std::ptr::NonNull<[u8]>, std::alloc::AllocError>; |
42 | | - let mut _16: isize; |
43 | | - let mut _18: !; |
| 40 | + let _13: std::alloc::Layout; |
| 41 | + let mut _14: std::result::Result<std::ptr::NonNull<[u8]>, std::alloc::AllocError>; |
| 42 | + let mut _15: isize; |
| 43 | + let mut _17: !; |
44 | 44 | scope 7 { |
45 | | - let _17: std::ptr::NonNull<[u8]>; |
| 45 | + let _16: std::ptr::NonNull<[u8]>; |
46 | 46 | scope 8 { |
47 | 47 | scope 11 (inlined NonNull::<[u8]>::as_mut_ptr) { |
48 | 48 | scope 12 (inlined NonNull::<[u8]>::as_non_null_ptr) { |
49 | 49 | scope 13 (inlined NonNull::<[u8]>::cast::<u8>) { |
50 | | - let mut _22: *mut [u8]; |
| 50 | + let mut _21: *mut [u8]; |
51 | 51 | scope 14 (inlined NonNull::<[u8]>::as_ptr) { |
52 | 52 | } |
53 | 53 | } |
|
60 | 60 | } |
61 | 61 | } |
62 | 62 | scope 9 (inlined #[track_caller] Layout::from_size_align_unchecked) { |
63 | | - let mut _19: bool; |
64 | | - let _20: (); |
65 | | - let mut _21: std::ptr::Alignment; |
| 63 | + let mut _18: bool; |
| 64 | + let _19: (); |
| 65 | + let mut _20: std::ptr::Alignment; |
66 | 66 | } |
67 | 67 | } |
68 | 68 | } |
|
71 | 71 | StorageLive(_1); |
72 | 72 | StorageLive(_2); |
73 | 73 | StorageLive(_3); |
| 74 | + StorageLive(_10); |
74 | 75 | StorageLive(_11); |
75 | 76 | StorageLive(_12); |
| 77 | +- _10 = SizeOf(()); |
| 78 | +- _11 = AlignOf(()); |
| 79 | ++ _10 = const 0_usize; |
| 80 | ++ _11 = const 1_usize; |
76 | 81 | StorageLive(_13); |
77 | | -- _11 = SizeOf(()); |
78 | | -- _12 = AlignOf(()); |
79 | | -+ _11 = const 0_usize; |
80 | | -+ _12 = const 1_usize; |
81 | | - StorageLive(_14); |
| 82 | + StorageLive(_15); |
82 | 83 | StorageLive(_16); |
83 | | - StorageLive(_17); |
84 | | - StorageLive(_19); |
85 | | - _19 = const false; |
86 | | -- switchInt(move _19) -> [0: bb6, otherwise: bb5]; |
| 84 | + StorageLive(_18); |
| 85 | + _18 = const false; |
| 86 | +- switchInt(move _18) -> [0: bb6, otherwise: bb5]; |
87 | 87 | + switchInt(const false) -> [0: bb6, otherwise: bb5]; |
88 | 88 | } |
89 | 89 |
|
|
98 | 98 | } |
99 | 99 |
|
100 | 100 | bb3: { |
101 | | -- _18 = handle_alloc_error(move _14) -> unwind unreachable; |
102 | | -+ _18 = handle_alloc_error(const Layout {{ size: 0_usize, align: std::ptr::Alignment(std::ptr::alignment::AlignmentEnum::_Align1Shl0) }}) -> unwind unreachable; |
| 101 | +- _17 = handle_alloc_error(move _13) -> unwind unreachable; |
| 102 | ++ _17 = handle_alloc_error(const Layout {{ size: 0_usize, align: std::ptr::Alignment(std::ptr::alignment::AlignmentEnum::_Align1Shl0) }}) -> unwind unreachable; |
103 | 103 | } |
104 | 104 |
|
105 | 105 | bb4: { |
106 | | - _17 = copy ((_15 as Ok).0: std::ptr::NonNull<[u8]>); |
107 | | - StorageLive(_22); |
108 | | - _22 = copy _17 as *mut [u8] (Transmute); |
109 | | - _13 = copy _22 as *mut u8 (PtrToPtr); |
110 | | - StorageDead(_22); |
111 | | - StorageDead(_15); |
112 | | - StorageDead(_17); |
113 | | - StorageDead(_16); |
| 106 | + _16 = copy ((_14 as Ok).0: std::ptr::NonNull<[u8]>); |
| 107 | + StorageLive(_21); |
| 108 | + _21 = copy _16 as *mut [u8] (Transmute); |
| 109 | + _12 = copy _21 as *mut u8 (PtrToPtr); |
| 110 | + StorageDead(_21); |
114 | 111 | StorageDead(_14); |
115 | | - _3 = ShallowInitBox(copy _13, ()); |
| 112 | + StorageDead(_16); |
| 113 | + StorageDead(_15); |
116 | 114 | StorageDead(_13); |
| 115 | + _3 = ShallowInitBox(copy _12, ()); |
117 | 116 | StorageDead(_12); |
118 | 117 | StorageDead(_11); |
| 118 | + StorageDead(_10); |
119 | 119 | _2 = &_3; |
120 | 120 | _1 = copy _2; |
121 | 121 | StorageDead(_2); |
122 | 122 | StorageLive(_4); |
123 | | -- _9 = deref_copy _3; |
124 | | -+ _9 = copy _3; |
125 | | - _10 = copy ((_9.0: std::ptr::Unique<()>).0: std::ptr::NonNull<()>) as *const () (Transmute); |
126 | | - _4 = copy _10; |
| 123 | + _23 = copy ((_3.0: std::ptr::Unique<()>).0: std::ptr::NonNull<()>); |
| 124 | + _9 = copy _23 as *const () (Transmute); |
| 125 | + _4 = copy _9; |
127 | 126 | - StorageLive(_5); |
128 | 127 | + nop; |
129 | 128 | StorageLive(_6); |
130 | 129 | - _6 = copy _4; |
131 | | -+ _6 = copy _10; |
132 | | - StorageLive(_23); |
133 | | - _23 = const 1_usize; |
134 | | -- _5 = *const [()] from (copy _6, copy _23); |
135 | | -+ _5 = *const [()] from (copy _10, const 1_usize); |
136 | | - StorageDead(_23); |
| 130 | ++ _6 = copy _9; |
| 131 | + StorageLive(_22); |
| 132 | + _22 = const 1_usize; |
| 133 | +- _5 = *const [()] from (copy _6, copy _22); |
| 134 | ++ _5 = *const [()] from (copy _9, const 1_usize); |
| 135 | + StorageDead(_22); |
137 | 136 | StorageDead(_6); |
138 | 137 | StorageLive(_7); |
139 | 138 | StorageLive(_8); |
140 | 139 | _8 = copy _5; |
141 | 140 | - _7 = copy _8 as *mut () (PtrToPtr); |
142 | | -+ _7 = copy ((_9.0: std::ptr::Unique<()>).0: std::ptr::NonNull<()>) as *mut () (Transmute); |
| 141 | ++ _7 = copy _23 as *mut () (Transmute); |
143 | 142 | StorageDead(_8); |
144 | 143 | StorageDead(_7); |
145 | 144 | - StorageDead(_5); |
|
149 | 148 | } |
150 | 149 |
|
151 | 150 | bb5: { |
152 | | -- _20 = Layout::from_size_align_unchecked::precondition_check(copy _11, copy _12) -> [return: bb6, unwind unreachable]; |
153 | | -+ _20 = Layout::from_size_align_unchecked::precondition_check(const 0_usize, const 1_usize) -> [return: bb6, unwind unreachable]; |
| 151 | +- _19 = Layout::from_size_align_unchecked::precondition_check(copy _10, copy _11) -> [return: bb6, unwind unreachable]; |
| 152 | ++ _19 = Layout::from_size_align_unchecked::precondition_check(const 0_usize, const 1_usize) -> [return: bb6, unwind unreachable]; |
154 | 153 | } |
155 | 154 |
|
156 | 155 | bb6: { |
157 | | - StorageDead(_19); |
158 | | - StorageLive(_21); |
159 | | -- _21 = copy _12 as std::ptr::Alignment (Transmute); |
160 | | -- _14 = Layout { size: copy _11, align: move _21 }; |
161 | | -+ _21 = const std::ptr::Alignment(std::ptr::alignment::AlignmentEnum::_Align1Shl0); |
162 | | -+ _14 = const Layout {{ size: 0_usize, align: std::ptr::Alignment(std::ptr::alignment::AlignmentEnum::_Align1Shl0) }}; |
163 | | - StorageDead(_21); |
164 | | - StorageLive(_15); |
165 | | -- _15 = std::alloc::Global::alloc_impl(const alloc::alloc::exchange_malloc::promoted[0], copy _14, const false) -> [return: bb7, unwind unreachable]; |
166 | | -+ _15 = std::alloc::Global::alloc_impl(const alloc::alloc::exchange_malloc::promoted[0], const Layout {{ size: 0_usize, align: std::ptr::Alignment(std::ptr::alignment::AlignmentEnum::_Align1Shl0) }}, const false) -> [return: bb7, unwind unreachable]; |
| 156 | + StorageDead(_18); |
| 157 | + StorageLive(_20); |
| 158 | +- _20 = copy _11 as std::ptr::Alignment (Transmute); |
| 159 | +- _13 = Layout { size: copy _10, align: move _20 }; |
| 160 | ++ _20 = const std::ptr::Alignment(std::ptr::alignment::AlignmentEnum::_Align1Shl0); |
| 161 | ++ _13 = const Layout {{ size: 0_usize, align: std::ptr::Alignment(std::ptr::alignment::AlignmentEnum::_Align1Shl0) }}; |
| 162 | + StorageDead(_20); |
| 163 | + StorageLive(_14); |
| 164 | +- _14 = std::alloc::Global::alloc_impl(const alloc::alloc::exchange_malloc::promoted[0], copy _13, const false) -> [return: bb7, unwind unreachable]; |
| 165 | ++ _14 = std::alloc::Global::alloc_impl(const alloc::alloc::exchange_malloc::promoted[0], const Layout {{ size: 0_usize, align: std::ptr::Alignment(std::ptr::alignment::AlignmentEnum::_Align1Shl0) }}, const false) -> [return: bb7, unwind unreachable]; |
167 | 166 | } |
168 | 167 |
|
169 | 168 | bb7: { |
170 | | - _16 = discriminant(_15); |
171 | | - switchInt(move _16) -> [0: bb4, 1: bb3, otherwise: bb2]; |
| 169 | + _15 = discriminant(_14); |
| 170 | + switchInt(move _15) -> [0: bb4, 1: bb3, otherwise: bb2]; |
172 | 171 | } |
173 | 172 | + } |
174 | 173 | + |
|
0 commit comments