Commit e36d590
committed
refactor: remove obsolete tranform
`let_x_uninitialized` is obsolete since the transpiler now initializes everything.
This is also an old transform, using the deprecated `mem::uninitialized`
instead of `MaybeUninit`, and not wrapping it in `unsafe` either.
Furthermore, the `let_x_uninitialized.rs` test didn't compile
since the variables were untyped.let_x_uninitialized
1 parent e6c23be commit e36d590
File tree
3 files changed
+2
-41
lines changed- c2rust-refactor
- src/transform
- tests
- snapshots
3 files changed
+2
-41
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 24 | | |
47 | 25 | | |
48 | 26 | | |
| |||
570 | 548 | | |
571 | 549 | | |
572 | 550 | | |
573 | | - | |
574 | 551 | | |
575 | 552 | | |
576 | 553 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | 253 | | |
260 | 254 | | |
261 | 255 | | |
| |||
Lines changed: 0 additions & 10 deletions
This file was deleted.
0 commit comments