|
9 | 9 | let mut _4: *mut [u8]; |
10 | 10 | let mut _5: std::ptr::NonNull<[u8]>; |
11 | 11 | let mut _6: std::result::Result<std::ptr::NonNull<[u8]>, std::alloc::AllocError>; |
12 | | - let mut _7: &std::alloc::Global; |
13 | | - let mut _8: std::alloc::Layout; |
| 12 | + let mut _7: std::alloc::Layout; |
14 | 13 | scope 1 { |
15 | 14 | debug layout => _1; |
16 | | - let mut _9: &std::alloc::Global; |
17 | 15 | scope 2 { |
18 | 16 | debug ptr => _3; |
19 | 17 | } |
20 | 18 | scope 5 (inlined <std::alloc::Global as Allocator>::allocate) { |
| 19 | + scope 6 (inlined std::alloc::Global::alloc_impl) { |
| 20 | + } |
21 | 21 | } |
22 | | - scope 6 (inlined NonNull::<[u8]>::as_ptr) { |
| 22 | + scope 7 (inlined NonNull::<[u8]>::as_ptr) { |
23 | 23 | } |
24 | 24 | } |
25 | 25 | scope 3 (inlined #[track_caller] Option::<Layout>::unwrap) { |
26 | | - let mut _10: isize; |
27 | | - let mut _11: !; |
| 26 | + let mut _8: isize; |
| 27 | + let mut _9: !; |
28 | 28 | scope 4 { |
29 | 29 | } |
30 | 30 | } |
|
35 | 35 | StorageLive(_2); |
36 | 36 | - _2 = Option::<Layout>::None; |
37 | 37 | + _2 = const Option::<Layout>::None; |
38 | | - StorageLive(_10); |
39 | | -- _10 = discriminant(_2); |
40 | | -- switchInt(move _10) -> [0: bb3, 1: bb4, otherwise: bb2]; |
41 | | -+ _10 = const 0_isize; |
| 38 | + StorageLive(_8); |
| 39 | +- _8 = discriminant(_2); |
| 40 | +- switchInt(move _8) -> [0: bb3, 1: bb4, otherwise: bb2]; |
| 41 | ++ _8 = const 0_isize; |
42 | 42 | + switchInt(const 0_isize) -> [0: bb3, 1: bb4, otherwise: bb2]; |
43 | 43 | } |
44 | 44 |
|
|
59 | 59 | } |
60 | 60 |
|
61 | 61 | bb3: { |
62 | | - _11 = option::unwrap_failed() -> unwind continue; |
| 62 | + _9 = option::unwrap_failed() -> unwind continue; |
63 | 63 | } |
64 | 64 |
|
65 | 65 | bb4: { |
66 | 66 | - _1 = move ((_2 as Some).0: std::alloc::Layout); |
67 | 67 | + _1 = const Layout {{ size: Indirect { alloc_id: ALLOC0, offset: Size(8 bytes) }: usize, align: std::ptr::Alignment(Scalar(0x0000000000000000): std::ptr::alignment::AlignmentEnum) }}; |
68 | | - StorageDead(_10); |
| 68 | + StorageDead(_8); |
69 | 69 | StorageDead(_2); |
70 | 70 | StorageLive(_3); |
71 | 71 | StorageLive(_4); |
72 | 72 | StorageLive(_5); |
73 | 73 | StorageLive(_6); |
74 | 74 | StorageLive(_7); |
75 | | - _9 = const main::promoted[0]; |
76 | | - _7 = copy _9; |
77 | | - StorageLive(_8); |
78 | | -- _8 = copy _1; |
79 | | -- _6 = std::alloc::Global::alloc_impl(move _7, move _8, const false) -> [return: bb5, unwind continue]; |
80 | | -+ _8 = const Layout {{ size: Indirect { alloc_id: ALLOC0, offset: Size(8 bytes) }: usize, align: std::ptr::Alignment(Scalar(0x0000000000000000): std::ptr::alignment::AlignmentEnum) }}; |
81 | | -+ _6 = std::alloc::Global::alloc_impl(copy _9, const Layout {{ size: Indirect { alloc_id: ALLOC0, offset: Size(8 bytes) }: usize, align: std::ptr::Alignment(Scalar(0x0000000000000000): std::ptr::alignment::AlignmentEnum) }}, const false) -> [return: bb5, unwind continue]; |
| 75 | +- _7 = copy _1; |
| 76 | +- _6 = std::alloc::Global::alloc_impl_runtime(move _7, const false) -> [return: bb5, unwind continue]; |
| 77 | ++ _7 = const Layout {{ size: Indirect { alloc_id: ALLOC0, offset: Size(8 bytes) }: usize, align: std::ptr::Alignment(Scalar(0x0000000000000000): std::ptr::alignment::AlignmentEnum) }}; |
| 78 | ++ _6 = std::alloc::Global::alloc_impl_runtime(const Layout {{ size: Indirect { alloc_id: ALLOC0, offset: Size(8 bytes) }: usize, align: std::ptr::Alignment(Scalar(0x0000000000000000): std::ptr::alignment::AlignmentEnum) }}, const false) -> [return: bb5, unwind continue]; |
82 | 79 | } |
83 | 80 |
|
84 | 81 | bb5: { |
85 | | - StorageDead(_8); |
86 | 82 | StorageDead(_7); |
87 | 83 | _5 = Result::<NonNull<[u8]>, std::alloc::AllocError>::unwrap(move _6) -> [return: bb1, unwind continue]; |
88 | 84 | } |
|
0 commit comments