More restructuring
parent: tbd commit: 10b7b7c
1 | use ; |
2 | |
3 | use crate::; |
4 | |
5 | |
6 | unsafe extern "C" ; |
7 | |
8 | |
9 | |
10 | unsafe extern "C" |
11 | if !taken |
12 | drop |
13 | else |
14 | let allocation = Box from_raw; |
15 | |
16 | // Since we "took" the value, kindly inform the compiler that it can't |
17 | // treat the value like it exists |
18 | let allocation_uninit: = |
19 | unsafe ; |
20 | |
21 | // Since the compiler has no idea whether the value exists or not, it won't try and |
22 | // drop it. Success! |
23 | drop; |
24 | |
25 | |
26 | |
27 |